mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-11 06:55:38 +03:00
18 lines
437 B
Bash
Executable File
18 lines
437 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
GHCVERSION=${GHCVERSION:-ghc822}
|
|
STRICT=${STRICT:-false}
|
|
TRACING=${TRACING:-false}
|
|
|
|
if [ "$GHCVERSION" = "ghcjs" ]; then
|
|
nix-build --substituters 'https://nixcache.reflex-frp.org?trusted=1' ghcjs
|
|
else
|
|
nix-build \
|
|
--argstr compiler $GHCVERSION \
|
|
--arg doTracing $TRACING \
|
|
--arg doStrict $STRICT
|
|
fi
|