mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
gnomeExtensions.gsconnect: fix installed tests
This commit is contained in:
parent
037d1121a4
commit
b421c61891
1 changed files with 8 additions and 12 deletions
|
@ -9,15 +9,12 @@
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, glib
|
, glib
|
||||||
|
, glib-networking
|
||||||
, gtk3
|
, gtk3
|
||||||
, openssh
|
, openssh
|
||||||
, gnome3
|
, gnome3
|
||||||
, gjs
|
, gjs
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, atk
|
|
||||||
, harfbuzz
|
|
||||||
, pango
|
|
||||||
, gdk-pixbuf
|
|
||||||
, gsettings-desktop-schemas
|
, gsettings-desktop-schemas
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -55,6 +52,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib # libgobject
|
glib # libgobject
|
||||||
|
glib-networking
|
||||||
gtk3
|
gtk3
|
||||||
gsound
|
gsound
|
||||||
gjs # for running daemon
|
gjs # for running daemon
|
||||||
|
@ -87,20 +85,18 @@ stdenv.mkDerivation rec {
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = let
|
postFixup = ''
|
||||||
testDeps = [
|
|
||||||
gtk3 harfbuzz atk pango.out gdk-pixbuf
|
|
||||||
];
|
|
||||||
in ''
|
|
||||||
# Let’s wrap the daemons
|
# Let’s wrap the daemons
|
||||||
for file in $out/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/{daemon,nativeMessagingHost}.js; do
|
for file in $out/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/{daemon,nativeMessagingHost}.js; do
|
||||||
echo "Wrapping program $file"
|
echo "Wrapping program $file"
|
||||||
wrapGApp "$file"
|
wrapGApp "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
wrapProgram "$installedTests/libexec/installed-tests/gsconnect/minijasmine" \
|
# Wrap jasmine runner for tests
|
||||||
--prefix XDG_DATA_DIRS : "${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" \
|
for file in $installedTests/libexec/installed-tests/gsconnect/minijasmine; do
|
||||||
--prefix GI_TYPELIB_PATH : "${stdenv.lib.makeSearchPath "lib/girepository-1.0" testDeps}"
|
echo "Wrapping program $file"
|
||||||
|
wrapGApp "$file"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
uuid = "gsconnect@andyholmes.github.io";
|
uuid = "gsconnect@andyholmes.github.io";
|
||||||
|
|
Loading…
Reference in a new issue