1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-FQgy2+g3AyRVJeniqPQj0KNeHgPdza2pmEIXqSyYry4=";
14 nativeBuildInputs = [ cmake ];
17 # networkmanager relies on libjansson.so:
18 # https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453
19 "-DJANSSON_BUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
23 homepage = "https://github.com/akheron/jansson";
24 description = "C library for encoding, decoding and manipulating JSON data";
25 changelog = "https://github.com/akheron/jansson/raw/v${version}/CHANGES";
26 license = licenses.mit;
27 platforms = platforms.all;
28 maintainers = [ maintainers.marsam ];