diff options
author | Alan Pearce | 2024-05-24 18:31:56 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-24 18:31:56 +0200 |
commit | e9eed3ddc4229db707cccb30beddde15044eff16 (patch) | |
tree | c586eae45a4aa99fd1a971c2bd29ad2e74d14975 /nix/package.nix | |
parent | 2c1491de56d0c3e2f4cb0b0c1e33035510f72fc5 (diff) | |
download | searchix-e9eed3ddc4229db707cccb30beddde15044eff16.tar.lz searchix-e9eed3ddc4229db707cccb30beddde15044eff16.tar.zst searchix-e9eed3ddc4229db707cccb30beddde15044eff16.zip |
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
Diffstat (limited to 'nix/package.nix')
-rw-r--r-- | nix/package.nix | 3 |
1 files changed, 3 insertions, 0 deletions
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 |