nixos-config/updateChannels.sh

24 lines
573 B
Bash
Raw Normal View History

2019-10-24 02:20:38 +02:00
#!/usr/bin/env bash
function fetch (){
local rev=$1
local output=$2
2020-11-21 18:56:11 +01:00
local url=${3:-https://github.com/NixOS/nixpkgs.git}
2019-10-24 02:20:38 +02:00
echo
echo
echo "update $url to rev $1"
nix-prefetch-git \
--url ${url} \
--rev ${rev} \
> ${output}
}
2021-07-03 09:20:32 +02:00
fetch "refs/heads/nixos-21.05" .channelStable.json
2019-10-24 02:20:38 +02:00
fetch "refs/heads/nixos-unstable" .channelUnstable.json
fetch "refs/tags/v3.2.0" .nix-writers.json "https://cgit.krebsco.de/nix-writers/"
fetch "ef1e4480cf8af45cfdeac597b2f1b1af33923e93" .nixos-generators.json "https://github.com/nix-community/nixos-generators.git"