Merge pull request #280665 from magneticflux-/libedit
{libedit,sharutils}: move env vars to `env.*`
This commit is contained in:
commit
97cef6e9b5
@ -21,9 +21,9 @@ stdenv.mkDerivation rec {
|
||||
# There is a DR to fix this issue with Clang which is not merged
|
||||
# yet.
|
||||
# https://reviews.llvm.org/D137043
|
||||
NIX_CFLAGS_COMPILE = lib.optional
|
||||
(stdenv.targetPlatform.isMusl && stdenv.cc.isClang)
|
||||
"-D__STDC_ISO_10646__=201103L";
|
||||
env.NIX_CFLAGS_COMPILE =
|
||||
lib.optionalString (stdenv.targetPlatform.isMusl && stdenv.cc.isClang)
|
||||
"-D__STDC_ISO_10646__=201103L";
|
||||
|
||||
patches = [ ./01-cygwin.patch ];
|
||||
|
||||
|
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
# Workaround to fix the static build on macOS.
|
||||
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user