perl: disallow reference to cc

Fixes #46077
This commit is contained in:
Matthew Bauer 2018-09-23 00:28:23 -05:00
parent fcde178ed5
commit 6910a9d1e2

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