From 33c4548e6bae998b14bf55ba7d22b8547df2e2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Da=C3=9Fler?= Date: Thu, 13 Feb 2025 21:37:03 +0100 Subject: [PATCH] Fix download Nixpkgs tarball --- .gitea/workflows/trigger_devbox.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/trigger_devbox.yaml b/.gitea/workflows/trigger_devbox.yaml index 17c874a..e66cafc 100644 --- a/.gitea/workflows/trigger_devbox.yaml +++ b/.gitea/workflows/trigger_devbox.yaml @@ -9,22 +9,27 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: DeterminateSystems/nix-installer-action@dea7810afd9d4c98556c8ec68cf361bd5b648eaa + - name: Download Nixpkgs Tarball + run: | + wget -O nixpkgs.tar.gz https://github.com/NixOS/nixpkgs/archive/75a52265bda7fd25e06e3a67dee3f0354e73243c.tar.gz + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # v16 with: logger: pretty - # pin installer version as v0.33 and v0.34 break our devbox setup - source-tag: v0.32.3 extra-conf: | - experimental-features = ca-derivations fetch-closure - # flakes nix-command + experimental-features = ca-derivations fetch-closure flakes nix-command + substituters = https://cache.nixos.org/ + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= - name: Install devbox uses: jetify-com/devbox-install-action@v0.12.0 with: project-path: './src' enable-cache: true - devbox-version: 0.13.4 + devbox-version: 0.13.7 skip-nix-installation: true + nixpkgs-url: file://$(pwd)/nixpkgs.tar.gz - name: Run arbitrary commands run: devbox run -- echo "done"