From d3184113b0b16585eaebd3eb6e08dc7078072ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 5 Nov 2021 17:17:07 +0100 Subject: [PATCH] fix build with nixpkgs unstable --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2c295c..c0c7201 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,6 +45,9 @@ jobs: uses: cachix/install-nix-action@v14 with: nix_path: "${{ matrix.nixPath }}" + extra_nix_config: | + experimental-features = nix-command flakes + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - name: Show nixpkgs version run: nix-instantiate --eval -E '(import {}).lib.version' - name: Setup cachix @@ -65,8 +68,7 @@ jobs: -I nixpkgs=$(nix-instantiate --find-file nixpkgs) \ -I $PWD - name: Build nix packages - # TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable - run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs + run: nix shell -f '' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs - name: Trigger NUR update # Don't replace here! if: ${{ matrix.nurRepo != '' }}