11 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitHub {
23 rev = "v${finalAttrs.version}";
24 hash = "sha256-FQgy2+g3AyRVJeniqPQj0KNeHgPdza2pmEIXqSyYry4=";
33 # networkmanager relies on libjansson.so:
34 # https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453
35 "-DJANSSON_BUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
39 tests.pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; };
40 updateScript = nix-update-script { };
44 description = "C library for encoding, decoding and manipulating JSON data";
45 homepage = "https://github.com/akheron/jansson";
46 changelog = "https://github.com/akheron/jansson/raw/${finalAttrs.src.rev}/CHANGES";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ getchoo ];
49 platforms = lib.platforms.all;
50 pkgConfigModules = [ "jansson" ];