summary refs log tree commit diff stats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..ea323cb
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env sh
+
+[ "$(free --mega | awk '{print $3}' | head -n 2 | tail -n 1)" -lt 2000 ] && {
+    echo "Not enough ram. Delete something."
+    exit 1
+}
+
+nix build .#default --log-format multiline-with-logs
+
+# vim: ft=sh