From c435c008f26c6db2ba2f62392c03184b73b0814e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 17 Jul 2025 21:23:04 +0200 Subject: ci --- .build.yml | 20 ++++++++++++++++++++ flake.nix | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..9556f0a --- /dev/null +++ b/.build.yml @@ -0,0 +1,20 @@ +#image: alpine/3.22 +image: debian/bookworm +packages: + - nix +# - hut not available on bookworm, only trixie (and alpine) +environment: + NIX_CONFIG: "experimental-features = nix-command flakes" +sources: + - https://git.sr.ht/~trygvis/personal-2025-07-constance-ring +tasks: + - setup: | + sudo adduser $USER nix-users # debian + # sudo usermod -aG nix $USER # alpine + - build: | + cd personal-2025-07-constance-ring + cp constance-ring.epub constance-ring.epub.orig + nix develop -c make +# - diff: | +# cd personal-2025-07-constance-ring +# nix develop -c diffoscope constance-ring.epub{.orig,} diff --git a/flake.nix b/flake.nix index 5b83fd0..b204064 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ let pkgs = import nixpkgs { system = "x86_64-linux"; }; in { - devShells."x86_64-linux".ci = with pkgs; mkShell { + devShells."x86_64-linux".default = with pkgs; mkShell { buildInputs = [ pandoc hunspell -- cgit v1.2.3