mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #225172 from Artturin/gir32bitccrossfix
This commit is contained in:
commit
99998eece8
@ -79,7 +79,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# Build definition checks for the Python modules needed at runtime by importing them.
|
||||
(buildPackages.python3.withPackages pythonModules)
|
||||
finalAttrs.setupHook # move .gir files
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ gobject-introspection-unwrapped ];
|
||||
# can't use canExecute, we need prebuilt when cross
|
||||
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ gobject-introspection-unwrapped ];
|
||||
|
||||
buildInputs = [
|
||||
(python3.withPackages pythonModules)
|
||||
@ -106,8 +107,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
inherit (buildPackages) bash;
|
||||
buildlddtree = "${buildPackages.pax-utils}/bin/lddtree";
|
||||
}}"
|
||||
"-Dgi_cross_use_prebuilt_gi=true"
|
||||
"-Dgi_cross_binary_wrapper=${stdenv.hostPlatform.emulator buildPackages}"
|
||||
# can't use canExecute, we need prebuilt when cross
|
||||
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||
"-Dgi_cross_use_prebuilt_gi=true"
|
||||
];
|
||||
|
||||
doCheck = !stdenv.isAarch64;
|
||||
|
Loading…
Reference in New Issue
Block a user