feature: add cleanup

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-11-16 18:03:32 +05:30
parent fad5ee8a30
commit 63a0268695
7 changed files with 397 additions and 55 deletions

15
nix/yamaf.nix Normal file
View File

@@ -0,0 +1,15 @@
{
craneLib,
lib,
src,
withCleanup ? false,
}:
let
cargoArtifacts = craneLib.buildDepsOnly { inherit src; };
in
craneLib.buildPackage {
inherit cargoArtifacts src;
doCheck = false;
cargoExtraArgs = lib.optionalString withCleanup "--features cleanup";
}