jsoncpp: 1.8.4 add cmake support
- Tested on NixOS
This commit is contained in:
parent
8fb48ffb55
commit
b5458aadc6
@ -1,10 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv , fetchFromGitHub , cmake , python }:
|
||||||
, fetchFromGitHub
|
|
||||||
, cmake
|
|
||||||
, python
|
|
||||||
}:
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "jsoncpp-${version}";
|
pname = "jsoncpp";
|
||||||
version = "1.8.4";
|
version = "1.8.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -36,13 +33,14 @@ stdenv.mkDerivation rec {
|
|||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
"-DBUILD_STATIC_LIBS=OFF"
|
"-DBUILD_STATIC_LIBS=OFF"
|
||||||
|
"-DJSONCPP_WITH_CMAKE_PACKAGE=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
inherit version;
|
inherit version;
|
||||||
homepage = https://github.com/open-source-parsers/jsoncpp;
|
homepage = https://github.com/open-source-parsers/jsoncpp;
|
||||||
description = "A C++ library for interacting with JSON.";
|
description = "A C++ library for interacting with JSON.";
|
||||||
maintainers = with maintainers; [ ttuegel cpages ];
|
maintainers = with maintainers; [ ttuegel cpages nand0p ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user