diff --git a/pkgs/development/interpreters/perl/default.nix b/pkgs/development/interpreters/perl/default.nix index 9adc72f941a22..d9fd23cc02f8d 100644 --- a/pkgs/development/interpreters/perl/default.nix +++ b/pkgs/development/interpreters/perl/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchurl, buildPackages , enableThreading ? stdenv ? glibc, makeWrapper +, coreutils }: with lib; @@ -55,9 +56,8 @@ let ++ optional crossCompiling ./MakeMaker-cross.patch; postPatch = '' - pwd="$(type -P pwd)" substituteInPlace dist/PathTools/Cwd.pm \ - --replace "/bin/pwd" "$pwd" + --replace "/bin/pwd" "${coreutils}/bin/pwd" '' + stdenv.lib.optionalString crossCompiling '' substituteInPlace cnf/configure_tool.sh --replace "cc -E -P" "cc -E" '';