diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-01 12:26:44 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-01 12:26:44 +0000 |
commit | 982af09d2c87d186539f1fd500996277c6b85472 (patch) | |
tree | 99a719e04a82efaaf2241c6944cf2b507fc4d4c2 /pkgs/development/interpreters/perl | |
parent | 4338ddd0f95fef1dffb1342651d49a4a0b60a8dc (diff) |
perl522: fix build on Darwin
The sw_vers patch only applies to version 5.24
Diffstat (limited to 'pkgs/development/interpreters/perl')
-rw-r--r-- | pkgs/development/interpreters/perl/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/perl/default.nix b/pkgs/development/interpreters/perl/default.nix index e4aa7db3e28dc..5654aefe5d29f 100644 --- a/pkgs/development/interpreters/perl/default.nix +++ b/pkgs/development/interpreters/perl/default.nix @@ -36,7 +36,8 @@ let ./no-sys-dirs.patch ] ++ optional stdenv.isSunOS ./ld-shared.patch - ++ optional stdenv.isDarwin [ ./cpp-precomp.patch ./sw_vers.patch ]; + ++ optional stdenv.isDarwin ./cpp-precomp.patch + ++ optional (stdenv.isDarwin && versionAtLeast version "5.24") ./sw_vers.patch; postPatch = '' pwd="$(type -P pwd)" |