summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-08-08 07:57:45 -0600
committerBrian Picciano <mediocregopher@gmail.com>2021-08-08 08:43:17 -0600
commit6feffc568ae790a883b9e0509d755e7d9bd82ee1 (patch)
treef913ce47e9f8204e5cf882f382d10e178e02367f /Makefile
parent0197d9cd493b5785bca05f476856540ec64da64a (diff)
refactor how nix derivations are organized and built
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 23 insertions, 2 deletions
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'