pypy: put NIX_CFLAGS_COMPILE under env to fix withCFlags
This commit is contained in:
@@ -120,14 +120,16 @@ stdenv.mkDerivation rec {
|
||||
dontPatchShebangs = true;
|
||||
disallowedReferences = [ python ];
|
||||
|
||||
# fix compiler error in curses cffi module, where char* != const char*
|
||||
NIX_CFLAGS_COMPILE =
|
||||
if stdenv.cc.isClang then "-Wno-error=incompatible-function-pointer-types" else null;
|
||||
C_INCLUDE_PATH = lib.makeSearchPathOutput "dev" "include" buildInputs;
|
||||
LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath (
|
||||
builtins.filter (x: x.outPath != stdenv.cc.libc.outPath or "") buildInputs
|
||||
);
|
||||
env = {
|
||||
# fix compiler error in curses cffi module, where char* != const char*
|
||||
NIX_CFLAGS_COMPILE =
|
||||
if stdenv.cc.isClang then "-Wno-error=incompatible-function-pointer-types" else null;
|
||||
C_INCLUDE_PATH = lib.makeSearchPathOutput "dev" "include" buildInputs;
|
||||
LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath (
|
||||
builtins.filter (x: x.outPath != stdenv.cc.libc.outPath or "") buildInputs
|
||||
);
|
||||
};
|
||||
|
||||
patches = [
|
||||
./dont_fetch_vendored_deps.patch
|
||||
|
||||
Reference in New Issue
Block a user