jansson: enable shared library installation

Without shared libraries metworkmanager fails to build:

    $ nix build -f. networkmanager -L
    ...
    networkmanager> meson.build:269:2: ERROR: Assert failed: Unable to determine Jansson SONAME
This commit is contained in:
Sergei Trofimovich 2022-06-09 18:49:11 +01:00
parent 69799d9721
commit 938f2ce101

View file

@ -13,6 +13,10 @@ 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" ];
meta = with lib; {
homepage = "https://github.com/akheron/jansson";
description = "C library for encoding, decoding and manipulating JSON data";