nixpkgs/pkgs/development/libraries/jansson/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
891 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake }:
2013-05-11 21:34:07 +00:00
stdenv.mkDerivation rec {
2021-06-20 14:15:21 +00:00
pname = "jansson";
version = "2.14";
2013-05-11 21:34:07 +00:00
src = fetchFromGitHub {
owner = "akheron";
repo = "jansson";
rev = "v${version}";
sha256 = "sha256-FQgy2+g3AyRVJeniqPQj0KNeHgPdza2pmEIXqSyYry4=";
2013-05-11 21:34:07 +00:00
};
nativeBuildInputs = [ cmake ];
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";
description = "C library for encoding, decoding and manipulating JSON data";
changelog = "https://github.com/akheron/jansson/raw/v${version}/CHANGES";
2015-05-01 21:36:51 +00:00
license = licenses.mit;
platforms = platforms.all;
2022-06-04 04:20:00 +00:00
maintainers = [ maintainers.marsam ];
2013-05-11 21:34:07 +00:00
};
}