Merge pull request #47207 from matthewbauer/disallow-cc-in-perl
perl: disallow cc in perl
This commit is contained in:
commit
1733030a12
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,8 @@ let
|
|||
stdenv.lib.optional crossCompiling "dev";
|
||||
setOutputFlags = false;
|
||||
|
||||
disallowedReferences = [ stdenv.cc ];
|
||||
|
||||
patches =
|
||||
[ ]
|
||||
# Do not look in /usr etc. for dependencies.
|
||||
|
@ -118,6 +120,7 @@ let
|
|||
--replace "${
|
||||
if stdenv.cc.cc or null != null then stdenv.cc.cc else "/no-such-path"
|
||||
}" /no-such-path \
|
||||
--replace "${stdenv.cc}" /no-such-path \
|
||||
--replace "$man" /no-such-path
|
||||
'' + stdenv.lib.optionalString crossCompiling
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue