Skip to content

Commit

Permalink
Setting the env vars already requires Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
hacklschorsch committed Dec 5, 2024
1 parent 6d99d58 commit c1f16bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:
fetch-depth: 0
fetch-tags: true

- name: Install nix
id: install_nix
uses: nixbuild/nix-quick-install-action@v28

- name: Set environment variables
run: |
echo "NIXPKGS=$(nix flake metadata | grep -E '[^\w]+nixpkgs-${{ matrix.nixpkgs }}[^\w]+:' | cut -d' ' -f2 | cut -d'?' -f1)" >> $GITHUB_ENV
echo "NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS##*/}.tar.gz" >> $GITHUB_ENV
- name: Install nix
id: install_nix
uses: nixbuild/nix-quick-install-action@v28

- name: Restore and cache Nix store for nixpkgs-${{ matrix.nixpkgs }}
uses: nix-community/cache-nix-action@v5
with:
Expand Down

0 comments on commit c1f16bc

Please sign in to comment.