Compare commits
2 commits
12b85b3147
...
746fb278d0
Author | SHA1 | Date | |
---|---|---|---|
746fb278d0 | |||
c51064fb17 |
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
set projectName port-valhalla
|
||||
set nixPkgsVersion nixos-24.11
|
||||
set nixPkgsVersion 566e53c2ad750c84f6d31f9ccb9d00f823165550
|
||||
set valhallaCache ~/".cache/$projectName"
|
||||
set nixPkgsCache "$valhallaCache/nixpkgs/$nixPkgsVersion"
|
||||
|
|
|
@ -11,8 +11,12 @@ begin
|
|||
source "$config"
|
||||
|
||||
if ! __isNixModule "$nixPkgsCache"
|
||||
mkdir -p "$nixPkgsCache"
|
||||
and git clone https://github.com/NixOS/nixpkgs.git --depth=1 -b "$nixPkgsVersion" "$nixPkgsCache"
|
||||
rm -rf "$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 origin "$nixPkgsVersion"
|
||||
and git -C "$nixPkgsCache" reset --hard FETCH_HEAD
|
||||
and rm -rf "$nixPkgsCache/.git"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue