refactor(tools/rust-crates-advisory): move advisory-db to 3p

Change-Id: Iaaed35de078292c0c99a7c83de9ca5fdf27b8135
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3711
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
sterni 2021-10-09 17:22:44 +02:00
parent 0a80313fd3
commit a3f8d2b84b
2 changed files with 10 additions and 7 deletions

View file

@ -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";
}

View file

@ -7,13 +7,7 @@ let
// depot.nix.getBins pkgs.lr [ "lr" ] // depot.nix.getBins pkgs.lr [ "lr" ]
; ;
crate-advisories = "${pkgs.fetchFromGitHub { crate-advisories = "${depot.third_party.rustsec-advisory-db}/crates";
owner = "RustSec";
repo = "advisory-db";
# TODO(Profpatsch): this will have to be updated regularly, how?
rev = "113188c62380753f01ff0df5edb7d67a300b143a";
sha256 = "0v086ybwr71zgs5nv8yr4w2w2d4daxx6in2s1sjb4m41q1r9p0wj";
}}/crates";
our-crates = lib.filter (v: v ? outPath) our-crates = lib.filter (v: v ? outPath)
(builtins.attrValues depot.third_party.rust-crates); (builtins.attrValues depot.third_party.rust-crates);