Commit 75c8cec9ab
75c8cec9ab2c171d4c0e987297ea2caec3934064
parent: 4750a76428
Unsigned
jonboh <jon.bosque.hernando@gmail.com> · 2024-09-22 15:25 UTC
update github action for nix build
to make sure nix flake cli commands are available
also remove flake-compat related default.nix as we can build directly
from the flake output
Layout: unified · split
.github/workflows/build_nix.yml
+3 −3
| @@ -1,11 +1,11 @@ |
| 1 | | name: "Build legacy Nix package on Ubuntu" |
| 1 | name: "Build Nix package on Ubuntu" |
| 2 | 2 | on: |
| 3 | 3 | push: |
| 4 | 4 | jobs: |
| 5 | 5 | build: |
| 6 | 6 | runs-on: ubuntu-latest |
| 7 | 7 | steps: |
| 8 | | - uses: actions/checkout@v2 |
| 9 | | - uses: cachix/install-nix-action@v12 |
| 8 | - uses: actions/checkout@v4 |
| 9 | - uses: cachix/install-nix-action@v27 |
| 10 | 10 | - name: Building package |
| 11 | 11 | run: nix build ".#defaultPackage.x86_64-linux" |
default.nix
deleted
−13
| @@ -1,13 +0,0 @@ |
| 1 | | (import |
| 2 | | ( |
| 3 | | let |
| 4 | | lock = builtins.fromJSON (builtins.readFile ./flake.lock); |
| 5 | | in |
| 6 | | fetchTarball { |
| 7 | | url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; |
| 8 | | sha256 = lock.nodes.flake-compat.locked.narHash; |
| 9 | | } |
| 10 | | ) |
| 11 | | { |
| 12 | | src = ./.; |
| 13 | | }).defaultNix |
shell.nix
deleted
−13
| @@ -1,13 +0,0 @@ |
| 1 | | (import |
| 2 | | ( |
| 3 | | let |
| 4 | | lock = builtins.fromJSON (builtins.readFile ./flake.lock); |
| 5 | | in |
| 6 | | fetchTarball { |
| 7 | | url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; |
| 8 | | sha256 = lock.nodes.flake-compat.locked.narHash; |
| 9 | | } |
| 10 | | ) |
| 11 | | { |
| 12 | | src = ./.; |
| 13 | | }).shellNix |