ci: store Clamav DB in LFS

Fix #136 (stop pulling the files from @griff's poor server), also add a script
to update the files.

The fun thing about this is that due to sourcing the files from
`https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/raw/master/tests/clamav`
during the tests, updates to the `hashes.json` and `*.cvd` files will always
fail CI.  I guess this is a reasonable tradeoff as long as people are aware of
it.
This commit is contained in:
Ruben Maher 2018-08-18 13:41:48 +09:30
parent 817d84d36d
commit 9488b6fd43
11 changed files with 53 additions and 9 deletions

9
shell.nix Normal file
View file

@ -0,0 +1,9 @@
{ nixpkgs ? <nixpkgs>, system ? builtins.currentSystem }:
with (import nixpkgs { inherit system; }); stdenv.mkDerivation rec {
name = "nixos-mailserver-env";
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = with pkgs; [
jq clamav
];
}