From e9eed3ddc4229db707cccb30beddde15044eff16 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 24 May 2024 18:31:56 +0200 Subject: refactor: split server cmd and module It should now be possible to run the server from inside another go application by importing the main module and running its Start() function --- nix/package.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nix/package.nix') diff --git a/nix/package.nix b/nix/package.nix index 104e09f..3426235 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -31,10 +31,13 @@ buildGoApplication { ../searchix.go ../internal ../frontend + ../cmd ]) (maybeMissing ../frontend/static/base.css); }; + subPackages = [ "cmd/searchix-web" ]; + patchPhase = '' rm -f frontend/static/base.css cp ${css} frontend/static/base.css -- cgit 1.4.1