Pierre Bourdon
919045560c
The channel scripts hit into NixOS/nixos-org-configurations#212 sometimes when fetching ISOs from cache.nixos.org to copy to the channels bucket. This makes runs take hours when they should take minutes. There is no benefit gained from going through cache.nixos.org for this use case. As noticed by @K900, the .iso nar.xz files on the cache are unlikely to be touched by anyone other than the channel scripts, so we don't even end up pre-warming the cache or anything along those lines - if anything, we just waste cache bytes that could be used by other paths. Fixes #67. |
||
---|---|---|
.gitignore | ||
default.nix | ||
delete-binary-cache-garbage.pl | ||
delete-old-releases.sh | ||
find-binary-cache-garbage.pl | ||
flake.lock | ||
flake.nix | ||
index-debuginfo.cc | ||
mirror-nixos-branch.pl | ||
print-dead-files.pl | ||
README.md | ||
shell.nix | ||
sign-binary-cache.pl |
Building
$ nix-build
Running
$ ./result/bin/mirror-nixos-branch nixos-16.03-small https://hydra.nixos.org/job/nixos/release-16.03-small/tested/latest-finished
$ ./result/bin/mirror-nixos-branch nixos-unstable-small https://hydra.nixos.org/job/nixos/unstable-small/tested/latest-finished
$ ./result/bin/generate-programs-index /data/releases/nixos-files.sqlite ./programs.sqlite http://nix-cache.s3.amazonaws.com/ /data/releases/nixos/unstable-small/nixos-16.09pre89017.9db1990-tmp/store-paths /data/releases/nixos/unstable-small/nixos-16.09pre89017.9db1990-tmp/unpack/nixos-16.09pre89017.9db1990/nixpkgs