add nixpkgs-unstable
This commit is contained in:
parent
c638d038e3
commit
0a7989d0f0
7
krebs/nixpkgs-unstable.json
Normal file
7
krebs/nixpkgs-unstable.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs-channels",
|
||||||
|
"rev": "d484f2b7fc0834a068e8ace851faa449a03963f5",
|
||||||
|
"date": "2019-09-20T22:58:43+02:00",
|
||||||
|
"sha256": "0jk93ikryi2hqc30l2n5i4vlgmklrlzb8cf7b3sg1q3k70q344jn",
|
||||||
|
"fetchSubmodules": false
|
||||||
|
}
|
9
krebs/update-nixpkgs-unstable.sh
Executable file
9
krebs/update-nixpkgs-unstable.sh
Executable file
|
@ -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"
|
Loading…
Reference in a new issue