diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index a5322812f8..78890a6e38 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -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: