perl522: fix build on Darwin
The sw_vers patch only applies to version 5.24
This commit is contained in:
@@ -36,7 +36,8 @@ let
|
|||||||
./no-sys-dirs.patch
|
./no-sys-dirs.patch
|
||||||
]
|
]
|
||||||
++ optional stdenv.isSunOS ./ld-shared.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 = ''
|
postPatch = ''
|
||||||
pwd="$(type -P pwd)"
|
pwd="$(type -P pwd)"
|
||||||
|
|||||||
Reference in New Issue
Block a user