Fix download Nixpkgs tarball
This commit is contained in:
@@ -9,22 +9,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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:
|
with:
|
||||||
logger: pretty
|
logger: pretty
|
||||||
# pin installer version as v0.33 and v0.34 break our devbox setup
|
|
||||||
source-tag: v0.32.3
|
|
||||||
extra-conf: |
|
extra-conf: |
|
||||||
experimental-features = ca-derivations fetch-closure
|
experimental-features = ca-derivations fetch-closure flakes nix-command
|
||||||
# flakes nix-command
|
substituters = https://cache.nixos.org/
|
||||||
|
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
||||||
|
|
||||||
- name: Install devbox
|
- name: Install devbox
|
||||||
uses: jetify-com/devbox-install-action@v0.12.0
|
uses: jetify-com/devbox-install-action@v0.12.0
|
||||||
with:
|
with:
|
||||||
project-path: './src'
|
project-path: './src'
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
devbox-version: 0.13.4
|
devbox-version: 0.13.7
|
||||||
skip-nix-installation: true
|
skip-nix-installation: true
|
||||||
|
nixpkgs-url: file://$(pwd)/nixpkgs.tar.gz
|
||||||
|
|
||||||
- name: Run arbitrary commands
|
- name: Run arbitrary commands
|
||||||
run: devbox run -- echo "done"
|
run: devbox run -- echo "done"
|
||||||
|
|||||||
Reference in New Issue
Block a user