Unverified Commit 6c77e93a authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

pypy: put NIX_CFLAGS_COMPILE under env to fix withCFlags

parent 10a29bad
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ stdenv.mkDerivation rec {
  dontPatchShebangs = true;
  disallowedReferences = [ python ];

  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;
@@ -128,6 +129,7 @@ stdenv.mkDerivation rec {
    LD_LIBRARY_PATH = lib.makeLibraryPath (
      builtins.filter (x: x.outPath != stdenv.cc.libc.outPath or "") buildInputs
    );
  };

  patches = [
    ./dont_fetch_vendored_deps.patch