aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-04-06 23:03:46 +0100
committerYann Herklotz <git@yannherklotz.com>2020-04-06 23:03:46 +0100
commit2b00c249a29236af734c1e5b717b859a2a54a5dc (patch)
tree070cf697a962f3b09e673b2fee9be541e3e90788 /scripts/build.sh
parentd31472164e711a330e9f0a5b0a486b12abb69daf (diff)
parent472aedf5daeb1cb0d095a63eacf259b798f56586 (diff)
downloadverismith-2b00c249a29236af734c1e5b717b859a2a54a5dc.tar.gz
verismith-2b00c249a29236af734c1e5b717b859a2a54a5dc.zip
Merge branch 'develop' of github.com:ymherklotz/verismith into develop
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
new file mode 100755
index 0000000..a08a179
--- /dev/null
+++ b/scripts/build.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if ! [[ -z $NIX ]]; then
+ if [[ $NIX -eq 0 ]]; then
+ cabal update
+ cabal build
+ else
+ nix-build
+ fi
+fi