Compare commits
2 commits
a71c0535a1
...
12b85b3147
Author | SHA1 | Date | |
---|---|---|---|
12b85b3147 | |||
ea5f3eaca5 |
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
set projectName port-valhalla
|
set projectName port-valhalla
|
||||||
set nixPkgsVersion nixos-24.11
|
set nixPkgsVersion 566e53c2ad750c84f6d31f9ccb9d00f823165550
|
||||||
set valhallaCache ~/".cache/$projectName"
|
set valhallaCache ~/".cache/$projectName"
|
||||||
set nixPkgsCache "$valhallaCache/nixpkgs/$nixPkgsVersion"
|
set nixPkgsCache "$valhallaCache/nixpkgs/$nixPkgsVersion"
|
||||||
|
|
|
@ -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