nix: generate shell, fixed env flags

This commit is contained in:
Marcin Kuzminski 2020-05-14 14:09:45 +02:00
parent 84e76c93b6
commit ab98ff6155

View file

@ -50,12 +50,6 @@ pkgs.stdenv.mkDerivation {
pkgs.curl
];
LC_ALL = "en_US.UTF-8";
LOCALE_ARCHIVE =
if pkgs.stdenv.isLinux
then "${pkgs.glibcLocales}/lib/locale/locale-archive"
else "";
shellHook = ''
runHook preShellHook
runHook postShellHook
@ -66,7 +60,8 @@ pkgs.stdenv.mkDerivation {
# set unpack source date to 1980 to fix ZIP problems that does not support <1980
export SOURCE_DATE_EPOCH=315532800
export TMPDIR=/tmp
export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
export LC_ALL="en_US.UTF-8"
# Custom prompt to distinguish from other dev envs.
export PS1="\n\[\033[1;32m\][pip2nix-generate-shell]$\[\033[0m\] "