2023-12-03 17:14:38 +01:00
|
|
|
{ lib, stdenv, hare, harec, fetchFromSourcehut }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hare-json";
|
2023-12-04 22:41:54 +01:00
|
|
|
version = "unstable-2023-03-13";
|
2023-12-03 17:14:38 +01:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "hare-json";
|
2023-12-04 22:41:54 +01:00
|
|
|
rev = "88256102a9fec62d494628e32cb406574e49e5e1";
|
|
|
|
hash = "sha256-Sx+RBiLhR3ftP89AwinVlBg0u0HX4GVP7TLmuofgC9s=";
|
2023-12-03 17:14:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ hare ];
|
|
|
|
|
2023-12-04 22:41:54 +01:00
|
|
|
makeFlags = [
|
|
|
|
"HARECACHE=.harecache"
|
|
|
|
"PREFIX=${builtins.placeholder "out"}"
|
|
|
|
];
|
2023-12-03 17:14:38 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/hare-json/";
|
|
|
|
description = "This package provides JSON support for Hare";
|
|
|
|
license = with licenses; [ mpl20 ];
|
|
|
|
maintainers = with maintainers; [ starzation ];
|
|
|
|
|
|
|
|
inherit (harec.meta) platforms badPlatforms;
|
|
|
|
};
|
|
|
|
})
|