vuls: init at 0.27.0
[NixPkgs.git] / doc / tests / manpage-urls.nix
blob214c236160098eb27a63710c335bd129aeb37b35
1 # To build this derivation, run `nix-build -A nixpkgs-manual.tests.manpage-urls`
3   lib,
4   runCommand,
5   invalidateFetcherByDrvHash,
6   cacert,
7   python3,
8 }:
10 invalidateFetcherByDrvHash (
11   {
12     name ? "manual_check-manpage-urls",
13     script ? ./manpage-urls.py,
14     urlsFile ? ../manpage-urls.json,
15   }:
16   runCommand name
17     {
18       nativeBuildInputs = [
19         cacert
20         (python3.withPackages (p: [
21           p.aiohttp
22           p.rich
23           p.structlog
24         ]))
25       ];
26       outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; # Empty output
27     }
28     ''
29       python3 ${script} ${urlsFile}
30       touch $out
31     ''
32 ) { }