mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
32 lines
576 B
Nix
32 lines
576 B
Nix
![]() |
{
|
||
|
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
|
||
|
''
|
||
|
) { }
|