git.iko.soy/typeable/nixpkgs
on master help sign in
ostree: fix gjs installed tests
commit26bd210afc2deb524417d447e42687f7fb28f5fe authorJan Tojnar <jtojnar@gmail.com> dateMon 24 Feb 2020, 20:33 (7 years ago) parent9567d80
1 file changed+7−2
pkgs/tools/misc/ostree/default.nix+7−2
pkgs/tools/misc/ostree/default.nix+7−2
@@ -113,9 +113,14 @@ in stdenv.mkDerivation rec {
113113 "installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/libostree"
114114 ];
115115
116− postFixup = ''
116+ postFixup = let
117+ typelibPath = stdenv.lib.makeSearchPath "/lib/girepository-1.0" [
118+ (placeholder "out")
119+ gobject-introspection
120+ ];
121+ in ''
117122 for test in $installedTests/libexec/installed-tests/libostree/*.js; do
118− wrapProgram "$test" --prefix GI_TYPELIB_PATH : "$out/lib/girepository-1.0"
123+ wrapProgram "$test" --prefix GI_TYPELIB_PATH : "${typelibPath}"
119124 done
120125 '';
121126