Samuel Dionne-Riel
2181f3c02a
The manpage says: > The sums are computed as described in FIPS-180-2. When checking, the input should be a former > output of this program. The default mode is to print a line with checksum, **a space, a character > indicating input mode ('*' for binary, ' ' for text or where binary is insignificant),** and name > for each FILE. By adding the filename to the generated sha256 file, a user would be able to download an iso, the sha256 file, then use `sha256 -c [file].iso.sha256` to verify the file. * * * This fixes nixos-homepage#224 |
||
---|---|---|
default.nix | ||
delete-binary-cache-garbage.pl | ||
delete-old-releases.sh | ||
file-cache.hh | ||
find-binary-cache-garbage.pl | ||
generate-programs-index.cc | ||
index-debuginfo.cc | ||
mirror-nixos-branch.pl | ||
print-dead-files.pl | ||
README.md | ||
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