all repos — searchix @ 0b2627ff5be310d394fe63063bdf67e22debe12d

Search engine for NixOS, nix-darwin, home-manager and NUR users

chore: simplify dev setup

Alan Pearce
commit

0b2627ff5be310d394fe63063bdf67e22debe12d

parent

a438dfbe193bc1188ef2500b889a9492a0ab2ac6

4 files changed, 5 insertions(+), 13 deletions(-)

changed files
M justfilejustfile
@@ -30,7 +30,7 @@ build:
nix build .# generate-defaults: - wgo run --exit ./cmd/searchix-web defaults > defaults.toml + go run ./cmd/searchix-web defaults > defaults.toml precommit: nix-build -A pre-commit-check
@@ -61,10 +61,10 @@
run: dev dev: - modd + watchexec --restart --exts go,toml,mod -- go run ./cmd/searchix-web --config config.toml serve --dev ingest *flags: - wgo run --exit ./cmd/searchix-web --config config.toml ingest --dev {{ flags }} + go run ./cmd/searchix-web --config config.toml ingest --dev {{ flags }} fetch: (ingest "--fetch")
D modd.conf
@@ -1,7 +0,0 @@
-internal/index/indexer.go { - prep +onchange: "just ingest --reindex" -} - -**/*.go config.toml { - daemon +sigint: go run -ldflags="-X alin.ovh/searchix/internal/config.Version=$(git describe --tags --abbrev=0)" ./cmd/searchix-web --config config.toml serve --dev -}
M nix/dev-shell.nixnix/dev-shell.nix
@@ -15,11 +15,10 @@ [
goEnv sd - modd + watchexec brotli boltbrowser bleve - wgo gomod2nix ] ++ pre-commit-check.enabledPackages;
M nix/pre-commit-checks.nixnix/pre-commit-checks.nix
@@ -75,7 +75,7 @@ ];
entry = let script = pkgs.writeShellScript "generate-default-config" '' - ${pkgs.wgo}/bin/wgo run -exit ./cmd/searchix-web defaults > defaults.toml + ${pkgs.go}/bin/go run ./cmd/searchix-web defaults > defaults.toml ''; in builtins.toString script;