git.iko.soy/typeable/nixpkgs
on master help sign in
jsoncpp: fix build on aarch64
commit59edab3a476de70a6325e0194aaef23e0f25cc5a authorMario Rodas <marsam@users.noreply.github.com> dateThu 19 Dec 2019, 04:20 (7 years ago) parent6b935eb
1 file changed+9−1
pkgs/development/libraries/jsoncpp/default.nix+9−1
pkgs/development/libraries/jsoncpp/default.nix+9−1
@@ -1,4 +1,4 @@
1−{ stdenv , fetchFromGitHub , cmake , python }:
1+{ stdenv, fetchFromGitHub, cmake, python, fetchpatch }:
22
33stdenv.mkDerivation rec {
44 pname = "jsoncpp";
@@ -30,6 +30,14 @@ stdenv.mkDerivation rec {
3030
3131 nativeBuildInputs = [ cmake python ];
3232
33+ # fix inverted sense in isAnyCharRequiredQuoting on aarch64. See: https://github.com/open-source-parsers/jsoncpp/pull/1120
34+ patches = stdenv.lib.optionals stdenv.isAarch64 [
35+ (fetchpatch {
36+ url = "https://github.com/open-source-parsers/jsoncpp/commit/9093358efae9e5981aa60013487fc7215f040a59.patch";
37+ sha256 = "1wiqp70sck2md14sfc0zdkblqk9750cl55ykf9d6b9vs1ifzzzq5";
38+ })
39+ ];
40+
3341 cmakeFlags = [
3442 "-DBUILD_SHARED_LIBS=ON"
3543 "-DBUILD_STATIC_LIBS=OFF"