nixpkgs/pkgs/by-name/bo/bonsai/package.nix

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

44 lines
921 B
Nix
Raw Normal View History

2024-05-16 23:14:57 +00:00
{
stdenv,
lib,
fetchFromSourcehut,
gitUpdater,
2024-05-16 23:25:45 +00:00
hareHook,
2024-05-16 23:14:57 +00:00
hareThirdParty,
2023-05-24 21:30:36 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2023-05-24 21:30:36 +00:00
pname = "bonsai";
2024-02-24 21:02:06 +00:00
version = "1.1.0";
2023-05-24 21:30:36 +00:00
src = fetchFromSourcehut {
owner = "~stacyharper";
repo = "bonsai";
rev = "v${finalAttrs.version}";
2024-02-24 21:02:06 +00:00
hash = "sha256-Wsr76OQOIqRPCx/8GK9NovxxPZ3dEP8pSo8wgMK1Hfo=";
2023-05-24 21:30:36 +00:00
};
nativeBuildInputs = [
2024-05-16 23:25:45 +00:00
hareHook
hareThirdParty.hare-ev
hareThirdParty.hare-json
2023-05-24 21:30:36 +00:00
];
2024-05-16 23:25:45 +00:00
makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ];
2023-05-24 21:30:36 +00:00
enableParallelBuilding = true;
2023-05-24 21:30:36 +00:00
doCheck = true;
2024-05-16 23:14:57 +00:00
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
2023-05-24 21:30:36 +00:00
meta = with lib; {
description = "Finite State Machine structured as a tree";
homepage = "https://git.sr.ht/~stacyharper/bonsai";
license = licenses.agpl3Plus;
2023-05-24 21:30:36 +00:00
maintainers = with maintainers; [ colinsane ];
platforms = platforms.linux;
mainProgram = "bonsaictl";
2023-05-24 21:30:36 +00:00
};
})