cmake: Get rid of circular dependency
Also, don't install static libraries in jsoncpp.
This commit is contained in:
@@ -20,18 +20,14 @@ stdenv.mkDerivation rec {
|
||||
export sourceRoot=${src.name}
|
||||
'';
|
||||
|
||||
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 python ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DJSONCPP_WITH_CMAKE_PACKAGE=1"
|
||||
];
|
||||
|
||||
postInstall = "rm $out/lib/*.a";
|
||||
|
||||
meta = {
|
||||
inherit version;
|
||||
homepage = https://github.com/open-source-parsers/jsoncpp;
|
||||
|
||||
Reference in New Issue
Block a user