3
0
Fork 0
forked from mirrors/nixpkgs

python37: fix cross build

This commit is contained in:
Franz Pletz 2019-01-01 23:00:56 +01:00
parent 6deecd2cf9
commit 47587f5d31
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -35,7 +35,7 @@ let
sitePackages = "lib/${libPrefix}/site-packages"; sitePackages = "lib/${libPrefix}/site-packages";
buildInputs = filter (p: p != null) [ buildInputs = filter (p: p != null) [
zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl nukeReferences ] zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ]
++ optionals x11Support [ tcl tk libX11 xproto ] ++ optionals x11Support [ tcl tk libX11 xproto ]
++ optionals stdenv.isDarwin [ CF configd ]; ++ optionals stdenv.isDarwin [ CF configd ];
@ -51,7 +51,7 @@ in stdenv.mkDerivation {
inherit buildInputs; inherit buildInputs;
nativeBuildInputs = nativeBuildInputs = [ nukeReferences ] ++
optionals (stdenv.hostPlatform != stdenv.buildPlatform) optionals (stdenv.hostPlatform != stdenv.buildPlatform)
[ buildPackages.stdenv.cc buildPackages.python37 ]; [ buildPackages.stdenv.cc buildPackages.python37 ];