pkgsStatic.jansson: fix build

Fixes: 938f2ce101 ("jansson: enable shared library installation")
This commit is contained in:
Alyssa Ross 2022-06-27 07:19:58 +00:00
parent b9460c15f5
commit a1c4db689c

View File

@ -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";