Commit c558d10e authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Nix shell install

parent 88449643
...@@ -2,10 +2,16 @@ ...@@ -2,10 +2,16 @@
#stack install --nix --profile --test --fast --no-install-ghc --skip-ghc-check #stack install --nix --profile --test --fast --no-install-ghc --skip-ghc-check
# Another solution to build
# nix-shell
# stack build
# If you have a linker issue:
# stack build --extra-lib-dirs=/nix/store/r3x96j3kmcs8dv4l02rrjmbhm535jycy-icu4c-72.1/lib
if [[ $1 == "dev" ]] ; if [[ $1 == "dev" ]] ;
then then
echo "DEV install" echo "DEV install"
env LANG=C.UTF-8 stack install --nix --no-install-ghc --skip-ghc-check --no-haddock-deps env LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 stack --nix install --no-install-ghc --skip-ghc-check --no-haddock-deps
else else
echo "PROD install (with documentation)" echo "PROD install (with documentation)"
env LANG=C.UTF-8 stack install --haddock --nix --test --no-install-ghc --skip-ghc-check --no-haddock-deps env LANG=C.UTF-8 stack install --haddock --nix --test --no-install-ghc --skip-ghc-check --no-haddock-deps
......
...@@ -8,6 +8,8 @@ let ...@@ -8,6 +8,8 @@ let
in in
pkgs.pkgs.mkShell { pkgs.pkgs.mkShell {
name = pkgs.shell.name; name = pkgs.shell.name;
# LOCALE_ARCHIVE = "${pkgs.pkgs.glibcLocales}/lib/locale/locale-archive";
home.sessionVariables.LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
shellHook = pkgs.shell.shellHook; shellHook = pkgs.shell.shellHook;
buildInputs = pkgs.shell.buildInputs ++ myBuildInputs; buildInputs = pkgs.shell.buildInputs ++ myBuildInputs;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment