Channel scripts for ForkOS
Find a file
Pierre Bourdon 919045560c
mirror-nixos-branch: fetch channel artifacts from S3 directly (#68)
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.
2024-01-28 19:40:32 +01:00
.gitignore Add .gitignore for result 2020-03-24 19:58:47 -04:00
default.nix Add flake-compat default.nix/shell.nix 2020-03-24 19:59:10 -04:00
delete-binary-cache-garbage.pl Scripts for deleting garbage from the binary cache 2015-06-03 16:23:16 +02:00
delete-old-releases.sh * Clean up small releases. 2014-12-09 12:42:06 +00:00
find-binary-cache-garbage.pl Scripts for deleting garbage from the binary cache 2015-06-03 16:23:16 +02:00
flake.lock Use nix and nix-index from nixpkgs instead of their own flakes 2023-01-12 21:00:49 +03:00
flake.nix Use nix and nix-index from nixpkgs instead of their own flakes 2023-01-12 21:00:49 +03:00
index-debuginfo.cc Update index-debuginfo.cc 2023-01-26 08:33:36 -05:00
mirror-nixos-branch.pl mirror-nixos-branch: fetch channel artifacts from S3 directly (#68) 2024-01-28 19:40:32 +01:00
print-dead-files.pl * Handle .nar.xz. 2013-06-17 02:15:49 +00:00
README.md Store releases in S3 2016-09-26 18:06:51 +02:00
shell.nix Add flake-compat default.nix/shell.nix 2020-03-24 19:59:10 -04:00
sign-binary-cache.pl Script for signing existing .narinfo files in a binary cache 2015-06-03 16:23:36 +02:00

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