git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #145493 from risicle/ris-graphene-darwin-fix

graphene: fix darwin build

commit4d19b372ff7690cac25a6b2f854c19abbefd6276 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 13 Nov 2021, 10:23 (5 years ago) parent27f8368324eeb1
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 = {