2018-08-22 10:55:30 +00:00
|
|
|
#!/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 \
|
2020-10-18 16:53:18 +00:00
|
|
|
--url https://github.com/NixOS/nixpkgs \
|
2022-12-02 08:18:41 +00:00
|
|
|
--rev refs/heads/nixos-22.11' \
|
2018-08-22 10:55:30 +00:00
|
|
|
> $dir/nixpkgs.json
|
|
|
|
newrev=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/')
|
|
|
|
git commit $dir/nixpkgs.json -m "nixpkgs: $oldrev -> $newrev"
|