about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-10-09T15·22+0200
committersterni <sternenseemann@systemli.org>2021-10-12T13·35+0000
commita3f8d2b84b5f8496c703bebfa2037438bdcedda5 (patch)
treee5f5fa0c77f62fbadbec9a0d0cda0ffe5d367bc1
parent0a80313fd37c0cb45b8dbbcfe4fceacbc3c497fc (diff)
refactor(tools/rust-crates-advisory): move advisory-db to 3p r/2967
Change-Id: Iaaed35de078292c0c99a7c83de9ca5fdf27b8135
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3711
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
-rw-r--r--third_party/rustsec-advisory-db/default.nix9
-rw-r--r--tools/rust-crates-advisory/default.nix8
2 files changed, 10 insertions, 7 deletions
diff --git a/third_party/rustsec-advisory-db/default.nix b/third_party/rustsec-advisory-db/default.nix
new file mode 100644
index 000000000000..2e280345abbf
--- /dev/null
+++ b/third_party/rustsec-advisory-db/default.nix
@@ -0,0 +1,9 @@
+{ pkgs, ... }:
+
+pkgs.fetchFromGitHub {
+  owner = "RustSec";
+  repo = "advisory-db";
+  # TODO(Profpatsch): this will have to be updated regularly, how?
+  rev = "113188c62380753f01ff0df5edb7d67a300b143a";
+  sha256 = "0v086ybwr71zgs5nv8yr4w2w2d4daxx6in2s1sjb4m41q1r9p0wj";
+}
diff --git a/tools/rust-crates-advisory/default.nix b/tools/rust-crates-advisory/default.nix
index 1a26a523b22c..9490e3f47477 100644
--- a/tools/rust-crates-advisory/default.nix
+++ b/tools/rust-crates-advisory/default.nix
@@ -7,13 +7,7 @@ let
     // depot.nix.getBins pkgs.lr [ "lr" ]
     ;
 
-  crate-advisories = "${pkgs.fetchFromGitHub {
-    owner = "RustSec";
-    repo = "advisory-db";
-    # TODO(Profpatsch): this will have to be updated regularly, how?
-    rev = "113188c62380753f01ff0df5edb7d67a300b143a";
-    sha256 = "0v086ybwr71zgs5nv8yr4w2w2d4daxx6in2s1sjb4m41q1r9p0wj";
-  }}/crates";
+  crate-advisories = "${depot.third_party.rustsec-advisory-db}/crates";
 
   our-crates = lib.filter (v: v ? outPath)
     (builtins.attrValues depot.third_party.rust-crates);