{libedit,sharutils}: move env vars to env.*
Closes https://github.com/NixOS/nixpkgs/issues/273746 See https://github.com/NixOS/nixpkgs/pull/217206 Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
parent
fcb7c27c72
commit
d0f90d9ca7
@ -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