2019-09-22 10:46:27 +00:00
|
|
|
#!/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/')
|
2019-12-01 15:26:04 +00:00
|
|
|
git commit $dir/nixpkgs-unstable.json -m "nixpkgs-unstable: $oldrev -> $newrev"
|