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
|
|
|
}:
|
|
|
|
|
2024-01-23 00:49:12 +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";
|
2024-01-23 00:49:12 +00:00
|
|
|
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
|
2024-01-23 00:49:12 +00:00
|
|
|
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
|
|
|
|
2024-01-23 00:49:12 +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";
|
2024-01-23 00:49:12 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2023-05-24 21:30:36 +00:00
|
|
|
maintainers = with maintainers; [ colinsane ];
|
|
|
|
platforms = platforms.linux;
|
2024-01-23 00:49:12 +00:00
|
|
|
mainProgram = "bonsaictl";
|
2023-05-24 21:30:36 +00:00
|
|
|
};
|
2024-01-23 00:49:12 +00:00
|
|
|
})
|