lol

graphene: build gir when cross

Artturin 322e4d8f 237da4a2

+7 -5
+7 -5
pkgs/development/libraries/graphene/default.nix
··· 5 , nix-update-script 6 , pkg-config 7 , meson 8 , ninja 9 , python3 10 , mutest ··· 21 pname = "graphene"; 22 version = "1.10.8"; 23 24 - outputs = [ "out" ] 25 - ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" "installedTests" ]; 26 27 src = fetchFromGitHub { 28 owner = "ebassi"; ··· 59 gobject-introspection 60 python3 61 makeWrapper 62 ]; 63 64 buildInputs = [ ··· 70 ]; 71 72 mesonFlags = [ 73 - "-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}" 74 - "-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}" 75 "-Dinstalled_test_datadir=${placeholder "installedTests"}/share" 76 "-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec" 77 ]; ··· 80 81 postPatch = '' 82 patchShebangs tests/gen-installed-test.py 83 - '' + lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) '' 84 PATH=${python3.withPackages (pp: [ pp.pygobject3 pp.tappy ])}/bin:$PATH patchShebangs tests/introspection.py 85 ''; 86
··· 5 , nix-update-script 6 , pkg-config 7 , meson 8 + , mesonEmulatorHook 9 , ninja 10 , python3 11 , mutest ··· 22 pname = "graphene"; 23 version = "1.10.8"; 24 25 + outputs = [ "out" "dev" "devdoc" ] 26 + ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ "installedTests" ]; 27 28 src = fetchFromGitHub { 29 owner = "ebassi"; ··· 60 gobject-introspection 61 python3 62 makeWrapper 63 + ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 64 + mesonEmulatorHook 65 ]; 66 67 buildInputs = [ ··· 73 ]; 74 75 mesonFlags = [ 76 + "-Dgtk_doc=true" 77 + "-Dintrospection=enabled" 78 "-Dinstalled_test_datadir=${placeholder "installedTests"}/share" 79 "-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec" 80 ]; ··· 83 84 postPatch = '' 85 patchShebangs tests/gen-installed-test.py 86 PATH=${python3.withPackages (pp: [ pp.pygobject3 pp.tappy ])}/bin:$PATH patchShebangs tests/introspection.py 87 ''; 88