diff options
author | makefu <github@syntax-fehler.de> | 2018-08-28 22:53:17 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-08-28 22:53:17 +0200 |
commit | 9c516e9504003cae2abed8a6e24f0b135ac98c4f (patch) | |
tree | 95c81a6f2cb9f47181608428b2234370c243eed9 /krebs/update-channel.sh | |
parent | c07f56b772f3ea58d2a4c0f504fe3df381f6a043 (diff) | |
parent | 413e0689acd4f6b322f9996950927ebd41d0e58c (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/update-channel.sh')
-rwxr-xr-x | krebs/update-channel.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/krebs/update-channel.sh b/krebs/update-channel.sh new file mode 100755 index 000000000..47d3f29c4 --- /dev/null +++ b/krebs/update-channel.sh @@ -0,0 +1,9 @@ +#!/bin/sh +dir=$(dirname $0) +oldrev=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/') +nix-shell -p nix-prefetch-git --run 'nix-prefetch-git \ + --url https://github.com/NixOS/nixpkgs-channels \ + --rev refs/heads/nixos-18.03' \ +> $dir/nixpkgs.json +newrev=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/') +git commit $dir/nixpkgs.json -m "nixpkgs: $oldrev -> $newrev" |