Skip to content

Commit

Permalink
rapidjson: make headers compliant with C++20
Browse files Browse the repository at this point in the history
(by stealing the relevant patch from Fedora)
  • Loading branch information
cmm committed Apr 23, 2021
1 parent cd0ffd3 commit b71a862
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/libraries/rapidjson/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake }:
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkg-config, cmake }:

stdenv.mkDerivation rec {
pname = "rapidjson";
Expand All @@ -11,6 +11,13 @@ stdenv.mkDerivation rec {
sha256 = "1jixgb8w97l9gdh3inihz7avz7i770gy2j2irvvlyrq3wi41f5ab";
};

patches = [
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/rapidjson/raw/48402da9f19d060ffcd40bf2b2e6987212c58b0c/f/rapidjson-1.1.0-c++20.patch";
sha256 = "1qm62iad1xfsixv1li7qy475xc7gc04hmi2q21qdk6l69gk7mf82";
})
];

nativeBuildInputs = [ pkg-config cmake ];

preConfigure = ''
Expand Down

0 comments on commit b71a862

Please sign in to comment.