aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2025-07-17 21:23:04 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2025-07-17 21:23:04 +0200
commitc435c008f26c6db2ba2f62392c03184b73b0814e (patch)
tree25efe7c262a85e00d1774f26fc8e626de2b40844
parent1a55b5b5a3a3bc96125fe8c97dfbc8ce0acb6e2b (diff)
downloadconstance-ring-c435c008f26c6db2ba2f62392c03184b73b0814e.tar.gz
constance-ring-c435c008f26c6db2ba2f62392c03184b73b0814e.tar.bz2
constance-ring-c435c008f26c6db2ba2f62392c03184b73b0814e.tar.xz
constance-ring-c435c008f26c6db2ba2f62392c03184b73b0814e.zip
ci
-rw-r--r--.build.yml20
-rw-r--r--flake.nix2
2 files changed, 21 insertions, 1 deletions
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