Merge pull request #145493 from risicle/ris-graphene-darwin-fix

graphene: fix darwin build

authored by Jörg Thalheim and committed by GitHub 4d19b372 27f8368b

+7 -3
+7 -3
pkgs/development/libraries/graphene/default.nix
··· 67 67 PATH=${python3.withPackages (pp: [ pp.pygobject3 pp.tappy ])}/bin:$PATH patchShebangs tests/introspection.py 68 68 ''; 69 69 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 73 77 ''; 74 78 75 79 passthru = {