1
0
Fork 0

Merge pull request #53 from nix-community/ci

fix build with nixpkgs unstable
main
Jörg Thalheim 2021-11-05 16:25:01 +00:00 committed by GitHub
commit 6c5dc9770f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -45,6 +45,9 @@ jobs:
uses: cachix/install-nix-action@v14 uses: cachix/install-nix-action@v14
with: with:
nix_path: "${{ matrix.nixPath }}" nix_path: "${{ matrix.nixPath }}"
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Show nixpkgs version - name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Setup cachix - name: Setup cachix
@ -65,8 +68,7 @@ jobs:
-I nixpkgs=$(nix-instantiate --find-file nixpkgs) \ -I nixpkgs=$(nix-instantiate --find-file nixpkgs) \
-I $PWD -I $PWD
- name: Build nix packages - name: Build nix packages
# TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable run: nix shell -f '<nixpkgs>' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
- name: Trigger NUR update - name: Trigger NUR update
# Don't replace <YOUR_REPO_NAME> here! # Don't replace <YOUR_REPO_NAME> here!
if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }} if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}