2022-06-26 10:26:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "jansson";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "2.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "akheron";
|
|
|
|
repo = "jansson";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-FQgy2+g3AyRVJeniqPQj0KNeHgPdza2pmEIXqSyYry4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
# networkmanager relies on libjansson.so:
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453
|
|
|
|
cmakeFlags = [ "-DJANSSON_BUILD_SHARED_LIBS=ON" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-26 10:26:21 +00:00
|
|
|
homepage = "https://github.com/akheron/jansson";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C library for encoding, decoding and manipulating JSON data";
|
2022-06-26 10:26:21 +00:00
|
|
|
changelog = "https://github.com/akheron/jansson/raw/v${version}/CHANGES";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = [ maintainers.marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|