summary refs log tree commit diff
path: root/pkgs/development/libraries/jsoncpp/1.6.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/jsoncpp/1.6.nix')
-rw-r--r--pkgs/development/libraries/jsoncpp/1.6.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/jsoncpp/1.6.nix b/pkgs/development/libraries/jsoncpp/1.6.nix
index 69dfc217573..d8b85847975 100644
--- a/pkgs/development/libraries/jsoncpp/1.6.nix
+++ b/pkgs/development/libraries/jsoncpp/1.6.nix
@@ -11,7 +11,14 @@ stdenv.mkDerivation rec {
     sha256 = "0ff1niks3y41gr6z13q9m391na70abqyi9rj4z3y2fz69cwm6sgz";
   };
 
-  nativeBuildInputs = [ cmake python ];
+  nativeBuildInputs =
+    [
+      # cmake can be built with the system jsoncpp, or its own bundled version.
+      # Obviously we cannot build it against the system jsoncpp that doesn't yet exist, so
+      # we make a bootstrapping build with the bundled version.
+      (cmake.override { jsoncpp = null; })
+      python
+    ];
 
   meta = {
     inherit version;