perl: add cc in addition to makeBinaryWrapper. see NixOS#311794

The "correct" solution to this problem (makeBinaryWrapper fails to be
able to compile the binary wrapper when building a freebsd cross env) is
that makeBinaryWrapper should propagate or embed a reference to the
compiler. However, this causes build failures on musl, so this will have
to do for now.
This commit is contained in:
Audrey Dutcher
2024-07-24 12:40:30 -07:00
parent 86929914e4
commit f293272682
@@ -1,4 +1,4 @@
{ lib, perl, buildEnv, makeBinaryWrapper
{ lib, perl, buildEnv, makeBinaryWrapper, stdenv
, extraLibs ? []
, extraOutputsToInstall ? []
, postBuild ? ""
@@ -17,7 +17,8 @@ let
inherit ignoreCollisions;
extraOutputsToInstall = [ "out" ] ++ extraOutputsToInstall;
nativeBuildInputs = [ makeBinaryWrapper ];
# TODO: remove stdenv.cc as soon as it is added to propagatedNativeBuildInputs of makeBinaryWrapper
nativeBuildInputs = [ makeBinaryWrapper stdenv.cc ];
# we create wrapper for the binaries in the different packages
postBuild = ''