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 ];
|
||||
|
||||
# networkmanager relies on libjansson.so:
|
||||
# https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453
|
||||
cmakeFlags = [ "-DJANSSON_BUILD_SHARED_LIBS=ON" ];
|
||||
cmakeFlags = [
|
||||
# networkmanager relies on libjansson.so:
|
||||
# https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453
|
||||
"-DJANSSON_BUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/akheron/jansson";
|
||||
|
Loading…
Reference in New Issue
Block a user