diff options
author | makefu <github@syntax-fehler.de> | 2019-09-25 15:21:03 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-09-25 15:21:03 +0200 |
commit | be19e6a618df0cdb44ce91f58efbc16e9d01f076 (patch) | |
tree | 3860e1e8018a17ffd81a533b034ec5da18082508 /krebs/update-nixpkgs-unstable.sh | |
parent | ab8cb5c12627f37f28ee62afb783548c90354fed (diff) | |
parent | 53c6b483ba2a17589a5e9656eeb6cbcfbde24383 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/update-nixpkgs-unstable.sh')
-rwxr-xr-x | krebs/update-nixpkgs-unstable.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/krebs/update-nixpkgs-unstable.sh b/krebs/update-nixpkgs-unstable.sh new file mode 100755 index 000000000..068da5f6f --- /dev/null +++ b/krebs/update-nixpkgs-unstable.sh @@ -0,0 +1,9 @@ +#!/bin/sh +dir=$(dirname $0) +oldrev=$(cat $dir/nixpkgs-unstable.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-unstable' \ +> $dir/nixpkgs-unstable.json +newrev=$(cat $dir/nixpkgs-unstable.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/') +git commit $dir/nixpkgs.json -m "nixpkgs-unstable: $oldrev -> $newrev" |