about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-24 14:27:14 +0200
committerAlan Pearce2024-04-24 14:27:14 +0200
commit2ef8e8286acfc06c4d7680d299e47dedea7b35eb (patch)
treea002f10a813fa1db913d9cdc027b91e4297db9ff
parentab9997a846fd6d78131d15e607565e91c6693a9f (diff)
downloadwebsite-2ef8e8286acfc06c4d7680d299e47dedea7b35eb.tar.lz
website-2ef8e8286acfc06c4d7680d299e47dedea7b35eb.tar.zst
website-2ef8e8286acfc06c4d7680d299e47dedea7b35eb.zip
nix: limit server compilation to sub-package
-rw-r--r--nix/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nix/default.nix b/nix/default.nix
index ba9e751..10d52a0 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -74,6 +74,7 @@ with pkgs; rec {
       ];
     };
     modules = ./gomod2nix.toml;
+    subPackages = [ "cmd/server" ];
     ldflags = [ "-s" "-w" "-X" "main.Commit=${fullSHA}" ];
   };
   docker-stream = mkDockerStream { inherit server website; };