mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
perlPackages.JSON: apply cross-compilation patch only when needed
This commit is contained in:
parent
201d3ef704
commit
16d064cc96
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user