aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/jsoncpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-05-01 22:26:52 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-05-01 22:26:55 -0700
commit3550d117cc0a955b370a448e4aa155b9bf48268e (patch)
tree9e89c1e92ba9b29b1233ecd467e8920b675e4afb /pkgs/development/libraries/jsoncpp
parente2b6e11b943d151a93ab997dd182736d8a9be193 (diff)
jsoncpp: 1.6.0 -> 1.6.2
Diffstat (limited to 'pkgs/development/libraries/jsoncpp')
-rw-r--r--pkgs/development/libraries/jsoncpp/default.nix37
1 files changed, 20 insertions, 17 deletions
diff --git a/pkgs/development/libraries/jsoncpp/default.nix b/pkgs/development/libraries/jsoncpp/default.nix
index d8b85847975b..7eb7f393ba43 100644
--- a/pkgs/development/libraries/jsoncpp/default.nix
+++ b/pkgs/development/libraries/jsoncpp/default.nix
@@ -1,24 +1,27 @@
-{ stdenv, fetchurl, cmake, python }:
+{ stdenv, fetchFromGitHub, cmake, python }:
-let
- basename = "jsoncpp";
- version = "1.6.0";
-in
stdenv.mkDerivation rec {
- name = "${basename}-${version}";
- src = fetchurl {
- url = "https://github.com/open-source-parsers/${basename}/archive/${version}.tar.gz";
- sha256 = "0ff1niks3y41gr6z13q9m391na70abqyi9rj4z3y2fz69cwm6sgz";
+ name = "jsoncpp-${version}";
+ version = "1.6.2";
+
+ src = fetchFromGitHub {
+ owner = "open-source-parsers";
+ repo = "jsoncpp";
+ rev = version;
+ sha256 = "0p92i0hx2k3g8mwrcy339b56bfq8qgpb65id8xllkgd2ns4wi9zi";
};
- 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
- ];
+ 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
+ ];
+
+ cmakeFlags = [
+ "-DJSONCPP_WITH_CMAKE_PACKAGE=1"
+ ];
meta = {
inherit version;