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 @@
1name: "Build legacy Nix package on Ubuntu"
1name: "Build Nix package on Ubuntu"
22on:
33 push:
44jobs:
55 build:
66 runs-on: ubuntu-latest
77 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
1010 - name: Building package
1111 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