git.iko.soy/typeable/nixpkgs
on master help sign in
graphene: only wrap introspection.py if present

appears to only be installed on linux

commit324eeb148e80a9b37659d1f3e20828839159365d authorRobert Scott <code@humanleg.org.uk> dateThu 11 Nov 2021, 13:24 (5 years ago) parentede17ad
1 file changed+7−3
pkgs/development/libraries/graphene/default.nix+7−3
pkgs/development/libraries/graphene/default.nix+7−3
@@ -67,9 +67,13 @@ stdenv.mkDerivation rec {
6767 PATH=${python3.withPackages (pp: [ pp.pygobject3 pp.tappy ])}/bin:$PATH patchShebangs tests/introspection.py
6868 '';
6969
70− postFixup = ''
71− wrapProgram "${placeholder "installedTests"}/libexec/installed-tests/graphene-1.0/introspection.py" \
72− --prefix GI_TYPELIB_PATH : "$out/lib/girepository-1.0"
70+ postFixup = let
71+ introspectionPy = "${placeholder "installedTests"}/libexec/installed-tests/graphene-1.0/introspection.py";
72+ in ''
73+ if [ -x '${introspectionPy}' ] ; then
74+ wrapProgram '${introspectionPy}' \
75+ --prefix GI_TYPELIB_PATH : "$out/lib/girepository-1.0"
76+ fi
7377 '';
7478
7579 passthru = {