Compare commits

..

No commits in common. "746fb278d0417145bad3c982a1bfa6c67a297480" and "cc5cad8c319a87486f6e092ffdd0e4c7b98c9039" have entirely different histories.

3 changed files with 4 additions and 8 deletions

View file

@ -19,7 +19,7 @@ begin
echo "{}" | sudo tee "$config" >/dev/null echo "{}" | sudo tee "$config" >/dev/null
echo "{}" | sudo tee "$overrides" >/dev/null echo "{}" | sudo tee "$overrides" >/dev/null
sudo cp "$dir"/{ci.Dockerfile,docker-compose.core.yml,.dockerignore} "$root" cp "$dir"/{ci.Dockerfile,docker-compose.core.yml,.dockerignore} "$root"
echo "DRONE_JSONNET_ENABLED=true" | sudo tee "$root/server.common.env" >/dev/null echo "DRONE_JSONNET_ENABLED=true" | sudo tee "$root/server.common.env" >/dev/null
echo "DRONE_RUNNER_CAPACITY=2" | sudo tee "$root/runner.common.env" >/dev/null echo "DRONE_RUNNER_CAPACITY=2" | sudo tee "$root/runner.common.env" >/dev/null

View file

@ -1,4 +1,4 @@
set projectName port-valhalla set projectName port-valhalla
set nixPkgsVersion 566e53c2ad750c84f6d31f9ccb9d00f823165550 set nixPkgsVersion nixos-24.11
set valhallaCache ~/".cache/$projectName" set valhallaCache ~/".cache/$projectName"
set nixPkgsCache "$valhallaCache/nixpkgs/$nixPkgsVersion" set nixPkgsCache "$valhallaCache/nixpkgs/$nixPkgsVersion"

View file

@ -11,12 +11,8 @@ begin
source "$config" source "$config"
if ! __isNixModule "$nixPkgsCache" if ! __isNixModule "$nixPkgsCache"
rm -rf "$nixPkgsCache" mkdir -p "$nixPkgsCache"
and mkdir -p "$nixPkgsCache" and git clone https://github.com/NixOS/nixpkgs.git --depth=1 -b "$nixPkgsVersion" "$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" and rm -rf "$nixPkgsCache/.git"
end end
end end