summary refs log tree commit diff
path: root/pkgs/development/libraries/jsoncpp
diff options
context:
space:
mode:
authorFernando J Pando <fernando.pando@stelligent.com>2019-03-21 17:46:25 -0400
committerFernando J Pando <fernando.pando@stelligent.com>2019-04-20 09:26:21 -0400
commitb5458aadc6bf893a1d9bd53358f4eff9ac90fc2a (patch)
tree33f1078343e90a2f685126598c5275fad23805ed /pkgs/development/libraries/jsoncpp
parent8fb48ffb55e7e98e881ff260f17e3501e61da128 (diff)
downloadnixpkgs-b5458aadc6bf893a1d9bd53358f4eff9ac90fc2a.tar
nixpkgs-b5458aadc6bf893a1d9bd53358f4eff9ac90fc2a.tar.gz
nixpkgs-b5458aadc6bf893a1d9bd53358f4eff9ac90fc2a.tar.bz2
nixpkgs-b5458aadc6bf893a1d9bd53358f4eff9ac90fc2a.tar.lz
nixpkgs-b5458aadc6bf893a1d9bd53358f4eff9ac90fc2a.tar.xz
nixpkgs-b5458aadc6bf893a1d9bd53358f4eff9ac90fc2a.tar.zst
nixpkgs-b5458aadc6bf893a1d9bd53358f4eff9ac90fc2a.zip
jsoncpp: 1.8.4 add cmake support
- Tested on NixOS
Diffstat (limited to 'pkgs/development/libraries/jsoncpp')
-rw-r--r--pkgs/development/libraries/jsoncpp/default.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/pkgs/development/libraries/jsoncpp/default.nix b/pkgs/development/libraries/jsoncpp/default.nix
index 1c62d79ed32..b543d47a050 100644
--- a/pkgs/development/libraries/jsoncpp/default.nix
+++ b/pkgs/development/libraries/jsoncpp/default.nix
@@ -1,10 +1,7 @@
-{ stdenv
-, fetchFromGitHub
-, cmake
-, python
-}:
+{ stdenv , fetchFromGitHub , cmake , python }:
+
 stdenv.mkDerivation rec {
-  name = "jsoncpp-${version}";
+  pname = "jsoncpp";
   version = "1.8.4";
 
   src = fetchFromGitHub {
@@ -36,13 +33,14 @@ stdenv.mkDerivation rec {
   cmakeFlags = [
     "-DBUILD_SHARED_LIBS=ON"
     "-DBUILD_STATIC_LIBS=OFF"
+    "-DJSONCPP_WITH_CMAKE_PACKAGE=ON"
   ];
 
   meta = with stdenv.lib; {
     inherit version;
     homepage = https://github.com/open-source-parsers/jsoncpp;
     description = "A C++ library for interacting with JSON.";
-    maintainers = with maintainers; [ ttuegel cpages ];
+    maintainers = with maintainers; [ ttuegel cpages nand0p ];
     license = licenses.mit;
     platforms = platforms.all;
   };