nixpkgs/pkgs/development/hare-third-party/hare-json/default.nix
Gustavo Coutinho de Souza 521b9c3d36
hareThirdParty.hare-json: unstable-2023-09-21 -> unstable-2023-03-13
Although the version date is going back in time, the commit,
88256102[1], is newer than the one on e24e5dceb[2], as it may be seen
from the Sourcehut's log[3].

Also refactor the `configurePhase` into `makeFlags`.

[1]: 88256102a9
[2]: e24e5dceb8
[3]: https://git.sr.ht/~sircmpwn/hare-json/log
2023-12-15 07:02:57 -03:00

31 lines
786 B
Nix

{ lib, stdenv, hare, harec, fetchFromSourcehut }:
stdenv.mkDerivation (finalAttrs: {
pname = "hare-json";
version = "unstable-2023-03-13";
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "hare-json";
rev = "88256102a9fec62d494628e32cb406574e49e5e1";
hash = "sha256-Sx+RBiLhR3ftP89AwinVlBg0u0HX4GVP7TLmuofgC9s=";
};
nativeBuildInputs = [ hare ];
makeFlags = [
"HARECACHE=.harecache"
"PREFIX=${builtins.placeholder "out"}"
];
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;
};
})