Add content hashes for pinned channels

This commit is contained in:
Erik Arvstedt
2019-11-07 21:57:00 +01:00
parent 961e8217a9
commit 46edb39d2f
2 changed files with 20 additions and 3 deletions

6
helper/fetch-channel Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
rev=$1
sha256=$(nix-prefetch-url --unpack https://github.com/nixos/nixpkgs-channels/archive/$rev.tar.gz)
echo "rev = \"$rev\";"
echo "sha256 = \"$sha256\";"