Allow commits as nix versions
This commit is contained in:
parent
d6105a22b8
commit
656f21e849
1 changed files with 6 additions and 2 deletions
|
@ -11,8 +11,12 @@ begin
|
||||||
source "$config"
|
source "$config"
|
||||||
|
|
||||||
if ! __isNixModule "$nixPkgsCache"
|
if ! __isNixModule "$nixPkgsCache"
|
||||||
mkdir -p "$nixPkgsCache"
|
rm -rf "$nixPkgsCache"
|
||||||
and git clone https://github.com/NixOS/nixpkgs.git --depth=1 -b "$nixPkgsVersion" "$nixPkgsCache"
|
and mkdir -p "$nixPkgsCache"
|
||||||
|
and git -C "$nixPkgsCache" init
|
||||||
|
and git -C "$nixPkgsCache" remote add origin https://github.com/NixOS/nixpkgs.git
|
||||||
|
and git -C "$nixPkgsCache" fetch --depth=1 origin "$nixPkgsVersion"
|
||||||
|
and git -C "$nixPkgsCache" reset --hard FETCH_HEAD
|
||||||
and rm -rf "$nixPkgsCache/.git"
|
and rm -rf "$nixPkgsCache/.git"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue