mediocre-blog/Makefile
2022-05-21 12:57:08 -06:00

23 lines
582 B
Makefile

CONFIG = ./config.nix
entrypoint:
nix-build -A entrypoint \
--arg baseConfig '(import ${CONFIG})'
install:
$$(nix-build -A install --arg baseConfig '(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 baseConfig '(import ${CONFIG})' \
--command 'cd srv/src; return'