1{ lib, stdenv, fetchFromGitHub, meson, ninja }:
2
3stdenv.mkDerivation {
4 pname = "parson";
5 version = "1.5.3";
6
7 src = fetchFromGitHub {
8 owner = "kgabis";
9 repo = "parson";
10 rev = "ba29f4eda9ea7703a9f6a9cf2b0532a2605723c3"; # upstream doesn't use tags
11 hash = "sha256-IEmCa0nauUzG+zcLpr++ySD7i21zVJh/35r9RaQkok0=";
12 };
13
14 nativeBuildInputs = [ meson ninja ];
15
16 meta = with lib; {
17 description = "Lightweight JSON library written in C";
18 homepage = "https://github.com/kgabis/parson";
19 license = licenses.mit;
20 platforms = platforms.all;
21 maintainers = [ maintainers.marsam ];
22 };
23}