bonsai: make use of hareHook

This commit is contained in:
Coutinho de Souza
2024-06-04 20:33:03 -03:00
parent 8e0140c676
commit d2cef6437c
+3 -13
View File
@@ -3,7 +3,7 @@
lib,
fetchFromSourcehut,
gitUpdater,
hare,
hareHook,
hareThirdParty,
}:
@@ -19,27 +19,17 @@ stdenv.mkDerivation (finalAttrs: {
};
nativeBuildInputs = [
hare
hareHook
hareThirdParty.hare-ev
hareThirdParty.hare-json
];
makeFlags = [
"PREFIX=${builtins.placeholder "out"}"
"HARECACHE=.harecache"
"HAREFLAGS=-qa${stdenv.hostPlatform.uname.processor}"
];
makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ];
enableParallelBuilding = true;
doCheck = true;
postPatch = ''
substituteInPlace Makefile \
--replace 'hare build' 'hare build $(HAREFLAGS)' \
--replace 'hare test' 'hare test $(HAREFLAGS)'
'';
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = with lib; {