Merge pull request #309959 from avnik/avnik/m2crypto-cross-fix

python-m2crypto: fix cross-compilation

authored by Linus Heckemann and committed by GitHub 3645b258 e5332191

+8 -4
+8 -4
pkgs/development/python-modules/m2crypto/default.nix
··· 32 parameterized 33 ]; 34 35 - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin (toString [ 36 - "-Wno-error=implicit-function-declaration" 37 - "-Wno-error=incompatible-pointer-types" 38 - ]); 39 40 nativeCheckInputs = [ 41 pytestCheckHook
··· 32 parameterized 33 ]; 34 35 + env = { 36 + NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin (toString [ 37 + "-Wno-error=implicit-function-declaration" 38 + "-Wno-error=incompatible-pointer-types" 39 + ]); 40 + } // lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) { 41 + CPP = "${stdenv.cc.targetPrefix}cpp"; 42 + }; 43 44 nativeCheckInputs = [ 45 pytestCheckHook