2021-10-10 14:53:56 +02:00
|
|
|
# RustSec's advisory db for crates
|
|
|
|
#
|
|
|
|
# Update using:
|
|
|
|
#
|
|
|
|
# nix-prefetch-git --quiet --url https://github.com/RustSec/advisory-db.git > third_party/rustsec-advisory-db/pin.json
|
|
|
|
#
|
|
|
|
# TODO(Profpatsch): automatically update in regular intervals
|
2021-10-09 17:22:44 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2021-10-10 14:53:56 +02:00
|
|
|
let
|
|
|
|
pin = builtins.fromJSON (builtins.readFile ./pin.json);
|
|
|
|
|
|
|
|
date = builtins.head (builtins.split "T" pin.date);
|
|
|
|
in
|
|
|
|
|
2021-10-09 17:22:44 +02:00
|
|
|
pkgs.fetchFromGitHub {
|
2021-10-10 14:53:56 +02:00
|
|
|
name = "advisory-db-${date}";
|
2021-10-09 17:22:44 +02:00
|
|
|
owner = "RustSec";
|
|
|
|
repo = "advisory-db";
|
2021-10-10 14:53:56 +02:00
|
|
|
inherit (pin)
|
|
|
|
rev
|
|
|
|
sha256
|
2022-01-30 17:06:58 +01:00
|
|
|
;
|
2022-02-03 14:29:25 +01:00
|
|
|
passthru = {
|
|
|
|
inherit (pin) rev;
|
|
|
|
};
|
2021-10-09 17:22:44 +02:00
|
|
|
}
|