diff options
Diffstat (limited to 'krebs/update-nixpkgs.sh')
-rwxr-xr-x | krebs/update-nixpkgs.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/krebs/update-nixpkgs.sh b/krebs/update-nixpkgs.sh new file mode 100755 index 000000000..08354357a --- /dev/null +++ b/krebs/update-nixpkgs.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-19.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" |