summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2021-01-02 22:26:17 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2021-01-02 22:26:17 -0300
commit95d7fc753081f1eb1c4577e637c460ba8edb10ee (patch)
tree30d9d2bd0b2d7de80bee9292cb1218fa08f470e9 /pkgs/development/tools
parente6f00abb561103bf62fe1f5968072da62394b1b4 (diff)
downloadnixpkgs-95d7fc753081f1eb1c4577e637c460ba8edb10ee.tar
nixpkgs-95d7fc753081f1eb1c4577e637c460ba8edb10ee.tar.gz
nixpkgs-95d7fc753081f1eb1c4577e637c460ba8edb10ee.tar.bz2
nixpkgs-95d7fc753081f1eb1c4577e637c460ba8edb10ee.tar.lz
nixpkgs-95d7fc753081f1eb1c4577e637c460ba8edb10ee.tar.xz
nixpkgs-95d7fc753081f1eb1c4577e637c460ba8edb10ee.tar.zst
nixpkgs-95d7fc753081f1eb1c4577e637c460ba8edb10ee.zip
cargo-wipe: init at 0.3.0
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/rust/cargo-wipe/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-wipe/default.nix b/pkgs/development/tools/rust/cargo-wipe/default.nix
new file mode 100644
index 00000000000..1ad0fbbb4b0
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-wipe/default.nix
@@ -0,0 +1,32 @@
+{ stdenv
+, rustPlatform
+, fetchFromGitHub
+, nix-update-script
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-wipe";
+  version = "0.3.0";
+
+  src = fetchFromGitHub {
+    owner = "mihai-dinculescu";
+    repo = "cargo-wipe";
+    rev = "v${version}";
+    sha256 = "1kwkifdp98zsinh7xcsz2va252wxbw73xlrv0r7h3m0bn51d52vw";
+  };
+
+  cargoSha256 = "15snr1b1pybwcjzwddxybvry3jyllcmrp8dyfm9yiagks3wrcfb4";
+
+  passthru = {
+    updateScript = nix-update-script {
+      attrPath = pname;
+    };
+  };
+
+  meta = with stdenv.lib; {
+    description = ''Cargo subcommand "wipe": recursively finds and optionally wipes all "target" or "node_modules" folders'';
+    homepage = "https://github.com/mihai-dinculescu/cargo-wipe";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ otavio ];
+  };
+}