python37: fix cross build
This commit is contained in:
parent
6deecd2cf9
commit
47587f5d31
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ let
|
|||
sitePackages = "lib/${libPrefix}/site-packages";
|
||||
|
||||
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 stdenv.isDarwin [ CF configd ];
|
||||
|
||||
|
@ -51,7 +51,7 @@ in stdenv.mkDerivation {
|
|||
|
||||
inherit buildInputs;
|
||||
|
||||
nativeBuildInputs =
|
||||
nativeBuildInputs = [ nukeReferences ] ++
|
||||
optionals (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||
[ buildPackages.stdenv.cc buildPackages.python37 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue