tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
graphene: build gir when cross
Artturin
3 years ago
322e4d8f
237da4a2
+7
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
graphene
default.nix
+7
-5
pkgs/development/libraries/graphene/default.nix
···
5
5
, nix-update-script
6
6
, pkg-config
7
7
, meson
8
8
+
, mesonEmulatorHook
8
9
, ninja
9
10
, python3
10
11
, mutest
···
21
22
pname = "graphene";
22
23
version = "1.10.8";
23
24
24
24
-
outputs = [ "out" ]
25
25
-
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" "installedTests" ];
25
25
+
outputs = [ "out" "dev" "devdoc" ]
26
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
63
+
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
64
64
+
mesonEmulatorHook
62
65
];
63
66
64
67
buildInputs = [
···
70
73
];
71
74
72
75
mesonFlags = [
73
73
-
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
74
74
-
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
76
76
+
"-Dgtk_doc=true"
77
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
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