hnix/build.sh

19 lines
496 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# NOTE: Script for the CI builds. CI comes here from `.travis.yml`
set -xe
set -euo pipefail
IFS=$'\n\t'
if [ "$GHCVERSION" = "ghcjs" ]; then
nix-build --substituters 'https://nixcache.reflex-frp.org?trusted=1' ghcjs
else
2018-05-14 08:26:28 +02:00
nix-build \
--argstr compiler $GHCVERSION \
--arg doTracing $TRACING \
--arg doStrict $STRICT \
$@
GHCVERSION=${GHCVERSION:-ghc865}
fi