summary refs log tree commit diff
path: root/pkgs/development/libraries/jsoncpp
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-12-19 04:20:00 -0500
committerMatthieu Coudron <coudron@iij.ad.jp>2019-12-19 16:56:01 +0100
commit59edab3a476de70a6325e0194aaef23e0f25cc5a (patch)
tree9c72b034b99b58019b0e2a29e5ee2a5763b121a2 /pkgs/development/libraries/jsoncpp
parent6b935eb62a7616ad87cd428f1b34a8fb46548a4d (diff)
downloadnixpkgs-59edab3a476de70a6325e0194aaef23e0f25cc5a.tar
nixpkgs-59edab3a476de70a6325e0194aaef23e0f25cc5a.tar.gz
nixpkgs-59edab3a476de70a6325e0194aaef23e0f25cc5a.tar.bz2
nixpkgs-59edab3a476de70a6325e0194aaef23e0f25cc5a.tar.lz
nixpkgs-59edab3a476de70a6325e0194aaef23e0f25cc5a.tar.xz
nixpkgs-59edab3a476de70a6325e0194aaef23e0f25cc5a.tar.zst
nixpkgs-59edab3a476de70a6325e0194aaef23e0f25cc5a.zip
jsoncpp: fix build on aarch64
Diffstat (limited to 'pkgs/development/libraries/jsoncpp')
-rw-r--r--pkgs/development/libraries/jsoncpp/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/jsoncpp/default.nix b/pkgs/development/libraries/jsoncpp/default.nix
index a6eae7a79fa..72158e186ac 100644
--- a/pkgs/development/libraries/jsoncpp/default.nix
+++ b/pkgs/development/libraries/jsoncpp/default.nix
@@ -1,4 +1,4 @@
-{ stdenv , fetchFromGitHub , cmake , python }:
+{ stdenv, fetchFromGitHub, cmake, python, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "jsoncpp";
@@ -30,6 +30,14 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake python ];
 
+  # fix inverted sense in isAnyCharRequiredQuoting on aarch64. See: https://github.com/open-source-parsers/jsoncpp/pull/1120
+  patches = stdenv.lib.optionals stdenv.isAarch64 [
+    (fetchpatch {
+      url = "https://github.com/open-source-parsers/jsoncpp/commit/9093358efae9e5981aa60013487fc7215f040a59.patch";
+      sha256 = "1wiqp70sck2md14sfc0zdkblqk9750cl55ykf9d6b9vs1ifzzzq5";
+     })
+  ];
+
   cmakeFlags = [
     "-DBUILD_SHARED_LIBS=ON"
     "-DBUILD_STATIC_LIBS=OFF"