2024-07-26 20:45:25 +02:00
|
|
|
# To build this derivation, run `nix-build -A nixpkgs-manual.tests.manpage-urls`
|
2024-07-26 20:28:06 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
runCommand,
|
|
|
|
invalidateFetcherByDrvHash,
|
|
|
|
cacert,
|
|
|
|
python3,
|
|
|
|
}:
|
|
|
|
|
|
|
|
invalidateFetcherByDrvHash (
|
|
|
|
{
|
|
|
|
name ? "manual_check-manpage-urls",
|
|
|
|
script ? ./manpage-urls.py,
|
|
|
|
urlsFile ? ../manpage-urls.json,
|
|
|
|
}:
|
|
|
|
runCommand name
|
|
|
|
{
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cacert
|
|
|
|
(python3.withPackages (p: [
|
|
|
|
p.aiohttp
|
|
|
|
p.rich
|
|
|
|
p.structlog
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; # Empty output
|
|
|
|
}
|
|
|
|
''
|
|
|
|
python3 ${script} ${urlsFile}
|
|
|
|
touch $out
|
|
|
|
''
|
|
|
|
) { }
|