forked from natto1784/yamaf
feature: add cleanup
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
15
nix/yamaf.nix
Normal file
15
nix/yamaf.nix
Normal 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";
|
||||
}
|
||||
Reference in New Issue
Block a user