about summary refs log tree commit diff
path: root/pkgs/development/tools/rust
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2019-11-11 23:42:47 +0100
committerFabian Möller <fabianm88@gmail.com>2019-11-11 23:42:47 +0100
commitd1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7 (patch)
treedecbfbcbcd7bce19a4c092b591730d620b610592 /pkgs/development/tools/rust
parentc462836bad9761c54e21731b621af096b1a0002a (diff)
downloadnixlib-d1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7.tar
nixlib-d1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7.tar.gz
nixlib-d1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7.tar.bz2
nixlib-d1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7.tar.lz
nixlib-d1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7.tar.xz
nixlib-d1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7.tar.zst
nixlib-d1ff1c0d0923ecf4917e6f20fd2f39e3194e75b7.zip
cargo-udeps: init at 0.1.5
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r--pkgs/development/tools/rust/cargo-udeps/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-udeps/default.nix b/pkgs/development/tools/rust/cargo-udeps/default.nix
new file mode 100644
index 000000000000..829f9aa3740d
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-udeps/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, CoreServices, Security, libiconv }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-udeps";
+  version = "0.1.5";
+
+  src = fetchFromGitHub {
+    owner = "est31";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0lrfnrxqmpp06fargb5s5fc9y4w4h0ahbd7rgibqqx1la23l9r5q";
+  };
+
+  cargoSha256 = "18rwzcsrlwds3nx90y03dkqm1hl4dpvclm32i9zy9bhpm9hkypwr";
+
+  nativeBuildInputs = [ pkgconfig ];
+
+  buildInputs = [ openssl ]
+    ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security libiconv ];
+
+  meta = with stdenv.lib; {
+    description = "Find unused dependencies in Cargo.toml";
+    homepage = "https://github.com/est31/cargo-udeps";
+    license = licenses.mit;
+    maintainers = with maintainers; [ b4dm4n ];
+    platforms = platforms.all;
+  };
+}