lol

graphene: build gir when cross

Artturin 322e4d8f 237da4a2

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