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

[FIX] Nix shell install

parent 88449643
Pipeline #4283 canceled with stages
......@@ -2,10 +2,16 @@
#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" ]] ;
then
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
echo "PROD install (with documentation)"
env LANG=C.UTF-8 stack install --haddock --nix --test --no-install-ghc --skip-ghc-check --no-haddock-deps
......
......@@ -8,6 +8,8 @@ let
in
pkgs.pkgs.mkShell {
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;
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