stockholm/makefu/update-channel.sh

10 lines
393 B
Bash
Raw Normal View History

2018-08-28 22:24:34 +00:00
#!/bin/sh
dir=$(dirname $0)
oldref=$(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/makefu/nixpkgs \
--rev refs/heads/master' \
> $dir/nixpkgs.json
newref=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/')
2018-11-30 22:18:53 +00:00
echo "git commit $dir/nixpkgs.json -m 'ma nixpkgs: $oldref -> $newref'"