pkgsStatic.jansson: fix build
Fixes: 938f2ce101
("jansson: enable shared library installation")
This commit is contained in:
parent
b9460c15f5
commit
a1c4db689c
|
@ -13,9 +13,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
# networkmanager relies on libjansson.so:
|
cmakeFlags = [
|
||||||
# https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453
|
# networkmanager relies on libjansson.so:
|
||||||
cmakeFlags = [ "-DJANSSON_BUILD_SHARED_LIBS=ON" ];
|
# https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453
|
||||||
|
"-DJANSSON_BUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/akheron/jansson";
|
homepage = "https://github.com/akheron/jansson";
|
||||||
|
|
Loading…
Reference in a new issue