Merge pull request #47207 from matthewbauer/disallow-cc-in-perl

perl: disallow cc in perl
This commit is contained in:
Matthew Bauer 2018-09-23 18:47:28 -05:00 committed by GitHub
commit 1733030a12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
''