CONFIG = ./config.nix entrypoint: nix-build -A entrypoint \ --arg config '(import ${CONFIG})' install: $$(nix-build -A install --arg config '(import ${CONFIG})') test: $$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \ --run "cd srv/src && go test ./... -count=1 -tags integration" @echo "\nTESTS PASSED!\n" srv.dev-shell: $$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \ --command "cd srv/src; return" srv.shell: nix-shell -A srv.shellWithBuild --arg config '(import ${CONFIG})' \ --command 'cd srv/src; return'