perl522: fix build on Darwin

The sw_vers patch only applies to version 5.24
This commit is contained in:
Vincent Laporte 2017-07-01 12:26:44 +00:00
parent 4338ddd0f9
commit 982af09d2c

View File

@ -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)"