perlPackages.JSON: apply cross-compilation patch only when needed
This commit is contained in:
@@ -8011,7 +8011,7 @@ let
|
||||
sha256 = "0nlgdzy40q26z8qhwngsd461glyai8dpwaccyhiljmrkaqwdjxz2";
|
||||
};
|
||||
# Do not abort cross-compilation on failure to load native JSON module into host perl
|
||||
preConfigure = ''
|
||||
preConfigure = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||
substituteInPlace Makefile.PL --replace "exit 0;" ""
|
||||
'';
|
||||
buildInputs = [ TestPod ];
|
||||
|
||||
Reference in New Issue
Block a user