add a nix run '.#clean'
rule
This commit is contained in:
@@ -16,5 +16,14 @@
|
||||
defaultPackage = packages.tree-sitter-nixshell;
|
||||
|
||||
devShells.default = pkgs.callPackage ./shell.nix { };
|
||||
|
||||
apps.clean = {
|
||||
type = "app";
|
||||
program = builtins.toString (pkgs.writeShellScript "clean" ''
|
||||
# remove build artifacts
|
||||
rm -f Cargo.toml binding.gyp
|
||||
rm -rf bindings/ src/
|
||||
'');
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user