about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-28 17:07:57 +0200
committerAlan Pearce2024-06-28 17:08:44 +0200
commit313f62584d7e5b59b9322442d0ee07a7526a0324 (patch)
tree44dc052ec184e0376c469e12a14abbf9a1f5e096
parente29149ae9b0cd31f38beb38b0f4ea4e1599f4d93 (diff)
downloadwebsite-313f62584d7e5b59b9322442d0ee07a7526a0324.tar.lz
website-313f62584d7e5b59b9322442d0ee07a7526a0324.tar.zst
website-313f62584d7e5b59b9322442d0ee07a7526a0324.zip
use a smaller shell for CI
-rw-r--r--ci.nix18
-rwxr-xr-xjustfile2
-rw-r--r--shell.nix3
3 files changed, 19 insertions, 4 deletions
diff --git a/ci.nix b/ci.nix
new file mode 100644
index 0000000..33b514d
--- /dev/null
+++ b/ci.nix
@@ -0,0 +1,18 @@
+{ pkgs ? (
+    let
+      sources = import ./npins;
+    in
+    import sources.nixpkgs { }
+  )
+}:
+pkgs.mkShell {
+  packages = with pkgs; [
+    go
+    templ
+    hyperlink
+    just
+
+    ko
+    flyctl
+  ];
+}
diff --git a/justfile b/justfile
index aab1b65..9c02f31 100755
--- a/justfile
+++ b/justfile
@@ -1,5 +1,5 @@
 #!/usr/bin/env cached-nix-shell
-#!nix-shell -i "just --justfile"
+#!nix-shell ci.nix -i "just --justfile"
 
 docker_registry := "registry.fly.io/alanpearce-eu"
 listen_address := env_var_or_default("LISTEN_ADDRESS", "::1")
diff --git a/shell.nix b/shell.nix
index 118b942..4b62685 100644
--- a/shell.nix
+++ b/shell.nix
@@ -21,8 +21,5 @@ pkgs.mkShell {
     systemfd
     just
     modd
-
-    ko
-    flyctl
   ];
 }