summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-06-11 10:33:00 +0100
committerGitHub <noreply@github.com>2018-06-11 10:33:00 +0100
commit053f927e63fc768a3d6333a657db0b88baba32e4 (patch)
tree18d897c186554286298a1f36b11a0462133f4fe4 /pkgs/top-level
parent796fa8190e3bb398aa322fbe27da2f4c7b0e1e8b (diff)
parent7f3db0dd7275c05e779fcb8506478e62278e8e6f (diff)
downloadnixlib-053f927e63fc768a3d6333a657db0b88baba32e4.tar
nixlib-053f927e63fc768a3d6333a657db0b88baba32e4.tar.gz
nixlib-053f927e63fc768a3d6333a657db0b88baba32e4.tar.bz2
nixlib-053f927e63fc768a3d6333a657db0b88baba32e4.tar.lz
nixlib-053f927e63fc768a3d6333a657db0b88baba32e4.tar.xz
nixlib-053f927e63fc768a3d6333a657db0b88baba32e4.tar.zst
nixlib-053f927e63fc768a3d6333a657db0b88baba32e4.zip
Merge pull request #41821 from volth/patch-150
perlPackages.JSON: fix cross-compilation
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/perl-packages.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index 042a31306511..2ee454f09581 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -8171,6 +8171,10 @@ let self = _self // overrides; _self = with self; {
       url = mirror://cpan/authors/id/I/IS/ISHIGAKI/JSON-2.97001.tar.gz;
       sha256 = "0nlgdzy40q26z8qhwngsd461glyai8dpwaccyhiljmrkaqwdjxz2";
     };
+    # Do not abort cross-compilation on failure to load native JSON module into host perl
+    preConfigure = ''
+      substituteInPlace Makefile.PL --replace "exit 0;" ""
+    '';
     meta = {
       description = "JSON (JavaScript Object Notation) encoder/decoder";
       license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];