perl: remove duplicated code

This commit is contained in:
volth
2018-08-17 12:51:07 +00:00
committed by GitHub
parent 47c0245d9c
commit 6635879ff1

View File

@@ -97,12 +97,6 @@ let
sed -i 's,\(libswanted.*\)pthread,\1,g' Configure
'';
preBuild = optionalString (!(stdenv ? cc && stdenv.cc.nativeTools))
''
# Make Cwd work on NixOS (where we don't have a /bin/pwd).
substituteInPlace dist/PathTools/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
'';
setupHook = ./setup-hook.sh;
passthru.libPrefix = "lib/perl5/site_perl";