summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-09-21 21:18:58 +0200
committerGitHub <noreply@github.com>2021-09-21 21:18:58 +0200
commit91fd0cd361968f037b7d3c4859561e7929b1ed5e (patch)
treed4468c799f553972df3c50b43da5ad0af5be132e
parent9955ecedec80099f29236341bb1d0fd678c6202a (diff)
parent016f9cf6b52030da3385e87df00e3057dfbaed55 (diff)
downloadnixpkgs-91fd0cd361968f037b7d3c4859561e7929b1ed5e.tar
nixpkgs-91fd0cd361968f037b7d3c4859561e7929b1ed5e.tar.gz
nixpkgs-91fd0cd361968f037b7d3c4859561e7929b1ed5e.tar.bz2
nixpkgs-91fd0cd361968f037b7d3c4859561e7929b1ed5e.tar.lz
nixpkgs-91fd0cd361968f037b7d3c4859561e7929b1ed5e.tar.xz
nixpkgs-91fd0cd361968f037b7d3c4859561e7929b1ed5e.tar.zst
nixpkgs-91fd0cd361968f037b7d3c4859561e7929b1ed5e.zip
Merge pull request #138827 from figsoda/cargo-supply-chain
-rw-r--r--pkgs/development/tools/rust/cargo-supply-chain/default.nix23
-rw-r--r--pkgs/top-level/all-packages.nix1
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-supply-chain/default.nix b/pkgs/development/tools/rust/cargo-supply-chain/default.nix
new file mode 100644
index 00000000000..b8d960c4650
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-supply-chain/default.nix
@@ -0,0 +1,23 @@
+{ lib, rustPlatform, fetchFromGitHub }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-supply-chain";
+  version = "0.0.2";
+
+  src = fetchFromGitHub {
+    owner = "rust-secure-code";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0kpm842p7l0vwbfa99zq3w3nsasy5sp1b99si7brjjvq99bad9gr";
+  };
+
+  cargoSha256 = "sha256-Mn5s6pfTHoFXtHqn6ii8PtAIBz/RJaR0zO5U5jS3UDU=";
+
+  meta = with lib; {
+    description = "Gather author, contributor and publisher data on crates in your dependency graph";
+    homepage = "https://github.com/rust-secure-code/cargo-supply-chain";
+    changelog = "https://github.com/rust-secure-code/cargo-supply-chain/blob/master/CHANGELOG.md";
+    license = with licenses; [ asl20 mit zlib ]; # any of three
+    maintainers = with maintainers; [ figsoda ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 547456d5080..732e58a81ee 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12470,6 +12470,7 @@ with pkgs;
   cargo-readme = callPackage ../development/tools/rust/cargo-readme {};
   cargo-sort = callPackage ../development/tools/rust/cargo-sort { };
   cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck { };
+  cargo-supply-chain = callPackage ../development/tools/rust/cargo-supply-chain { };
   cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
   cargo-sync-readme = callPackage ../development/tools/rust/cargo-sync-readme {};
   cargo-tally = callPackage ../development/tools/rust/cargo-tally {