summary refs log tree commit diff
path: root/pkgs/tools/misc/ostree
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-02-24 20:33:39 +0100
committerJan Tojnar <jtojnar@gmail.com>2020-02-24 20:33:39 +0100
commit26bd210afc2deb524417d447e42687f7fb28f5fe (patch)
tree7b89866b51696fae5cf90d0df5660a6c28ed1d39 /pkgs/tools/misc/ostree
parent9567d805f01932f4933a07a15a73c64f16166b48 (diff)
downloadnixpkgs-26bd210afc2deb524417d447e42687f7fb28f5fe.tar
nixpkgs-26bd210afc2deb524417d447e42687f7fb28f5fe.tar.gz
nixpkgs-26bd210afc2deb524417d447e42687f7fb28f5fe.tar.bz2
nixpkgs-26bd210afc2deb524417d447e42687f7fb28f5fe.tar.lz
nixpkgs-26bd210afc2deb524417d447e42687f7fb28f5fe.tar.xz
nixpkgs-26bd210afc2deb524417d447e42687f7fb28f5fe.tar.zst
nixpkgs-26bd210afc2deb524417d447e42687f7fb28f5fe.zip
ostree: fix gjs installed tests
Diffstat (limited to 'pkgs/tools/misc/ostree')
-rw-r--r--pkgs/tools/misc/ostree/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/misc/ostree/default.nix b/pkgs/tools/misc/ostree/default.nix
index 05e7f9c05ef..9a41f5e857a 100644
--- a/pkgs/tools/misc/ostree/default.nix
+++ b/pkgs/tools/misc/ostree/default.nix
@@ -113,9 +113,14 @@ in stdenv.mkDerivation rec {
     "installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/libostree"
   ];
 
-  postFixup = ''
+  postFixup = let
+    typelibPath = stdenv.lib.makeSearchPath "/lib/girepository-1.0" [
+      (placeholder "out")
+      gobject-introspection
+    ];
+  in ''
     for test in $installedTests/libexec/installed-tests/libostree/*.js; do
-      wrapProgram "$test" --prefix GI_TYPELIB_PATH : "$out/lib/girepository-1.0"
+      wrapProgram "$test" --prefix GI_TYPELIB_PATH : "${typelibPath}"
     done
   '';