]> Git — Sourcephile - gargantext.git/blob - bin/install
[BIN] install
[gargantext.git] / bin / install
1 #!/bin/bash
2
3 #stack install --nix --profile --test --fast --no-install-ghc --skip-ghc-check
4
5 # Another solution to build
6 # nix-shell
7 # stack build
8 # If you have a linker issue:
9 # stack build --extra-lib-dirs=/nix/store/r3x96j3kmcs8dv4l02rrjmbhm535jycy-icu4c-72.1/lib
10
11 if [[ $1 == "dev" ]] ;
12 then
13 echo "DEV install"
14 env LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 stack --nix install --no-install-ghc --skip-ghc-check --no-haddock-deps
15 else
16 echo "PROD install (with documentation)"
17 nix-shell --run "cabal install"
18 #env LANG=C.UTF-8 stack install --haddock --nix --test --no-install-ghc --skip-ghc-check --no-haddock-deps
19 fi