blob: 1441ff07a716bce9e89eb74654b7e14b00969f3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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
{ pkgs, ... }:
let
pin = builtins.fromJSON (builtins.readFile ./pin.json);
date = builtins.head (builtins.split "T" pin.date);
in
pkgs.fetchFromGitHub {
name = "advisory-db-${date}";
owner = "RustSec";
repo = "advisory-db";
inherit (pin)
rev
sha256
;
passthru = {
inherit (pin) rev;
};
}
|