Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix ci (#67)

* bump cachix action

* temporarily disable cachix

* remove deprecated overlay syntax

* update ci

authored by

Akshay and committed by
GitHub
9cb88dd5 6463c054

+15 -33
+13 -31
.github/workflows/build.yml
··· 1 - name: build 1 + name: "Test" 2 2 on: 3 3 pull_request: 4 4 push: 5 5 jobs: 6 - build: 7 - strategy: 8 - matrix: 9 - os: 10 - - ubuntu-latest 11 - nix: 12 - - name: 2.5.1 13 - url: https://releases.nixos.org/nix/nix-2.5.1/install 14 - runs-on: ${{ matrix.os }} 6 + tests: 7 + runs-on: ubuntu-latest 15 8 steps: 16 - - uses: actions/checkout@v2.3.5 17 - - uses: cachix/install-nix-action@v15 18 - with: 19 - install_url: ${{ matrix.nix.url }} 20 - extra_nix_config: | 21 - experimental-features = nix-command flakes 22 - 23 - - name: enable binary cache 24 - uses: cachix/cachix-action@v10 25 - with: 26 - name: statix 27 - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' 28 - 29 - - run: nix flake check 30 - 31 - # this also includes `cargo test` 32 - - name: build statix 33 - run: nix build -L 34 - 35 - - name: build and install statix with flake-compat 36 - run: nix-env -if default.nix 9 + - uses: actions/checkout@v3 10 + - uses: cachix/install-nix-action@v18 11 + with: 12 + github_access_token: ${{ secrets.GITHUB_TOKEN }} 13 + - name: build statix 14 + run: nix build -L 15 + - name: test statix 16 + run: nix flake check 17 + - name: build statix and install statix in flake-compat mode 18 + run: nix-env -if default.nix
+2 -2
flake.nix
··· 29 29 nixpkgsFor = forAllSystems (system: 30 30 import nixpkgs { 31 31 inherit system; 32 - overlays = [ self.overlay ]; 32 + overlays = [ self.overlays.default ]; 33 33 }); 34 34 35 35 chanspec = { ··· 42 42 in 43 43 { 44 44 45 - overlay = final: prev: { 45 + overlays.default = final: prev: { 46 46 47 47 statix = with final; 48 48 let