From 6feffc568ae790a883b9e0509d755e7d9bd82ee1 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 8 Aug 2021 07:57:45 -0600 Subject: refactor how nix derivations are organized and built --- Makefile | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2417c12..00291b2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,25 @@ -install: - nix-build -A install +all: + nix-build -A entrypoint --arg baseConfig '(import ./config.nix) // { staticProxyURL = ""; }' + +all.prod: + nix-build -A entrypoint --arg baseConfig '(import ./prod.config.nix)' + +install.prod: + nix-build -A install --arg baseConfig '(import ./prod.config.nix)' ./result + +srv.shell: + nix-shell -A srv.shell --command 'cd srv; return' + +static.shell: + nix-shell -A static.shell --command 'cd static; return' + +static.serve: + nix-shell -A static.shell --run 'cd static; static-serve' + +static.depShell: + nix-shell -A static.depShell --command 'cd static; return' + +static.lock: + nix-shell -A static.depShell --run 'bundler lock; bundix; rm -rf .bundle vendor' -- cgit v1.2.3