bonsai: make use of hareHook
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user