mirror of
https://github.com/schmittlauch/nur-packages
synced 2025-05-11 08:00:17 +02:00
update build command to syntax changes in Nix 2.4
This commit is contained in:
parent
f30134873f
commit
05f03922ba
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -40,6 +40,9 @@ jobs:
|
||||||
uses: cachix/install-nix-action@v14.1
|
uses: cachix/install-nix-action@v14.1
|
||||||
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
|
||||||
|
@ -58,8 +61,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
|
||||||
if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}
|
if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}
|
||||||
run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"
|
run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"
|
||||||
|
|
Loading…
Reference in a new issue