Channel scripts for ForkOS
Find a file
Samuel Dionne-Riel 2181f3c02a Adds filename to sha256 file for use with sha256 -c
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
2018-06-06 18:11:16 -04:00
default.nix generate-programs-index: Check whether symlink targets exist 2017-07-07 16:45:45 +02: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
file-cache.hh generate-programs-index: Check whether symlink targets exist 2017-07-07 16:45:45 +02:00
find-binary-cache-garbage.pl Scripts for deleting garbage from the binary cache 2015-06-03 16:23:16 +02:00
generate-programs-index.cc Fix build 2018-01-04 15:33:22 +01:00
index-debuginfo.cc Add a command for indexing debug info files by build ID 2017-07-07 15:33:27 +02:00
mirror-nixos-branch.pl Adds filename to sha256 file for use with sha256 -c 2018-06-06 18:11:16 -04: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
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