ostree: fix gjs installed tests

This commit is contained in:
Jan Tojnar 2020-02-24 20:33:39 +01:00
parent 9567d805f0
commit 26bd210afc
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -113,9 +113,14 @@ in stdenv.mkDerivation rec {
"installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/libostree" "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 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 done
''; '';