mirror of https://github.com/coder/coder.git
fix: add locale to dogfood image (#9181)
* fix: add locale to dogfood image * Update flake.nix Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> * Add gcc --------- Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
This commit is contained in:
parent
95458ac8a5
commit
88de63f891
27
flake.nix
27
flake.nix
|
@ -22,6 +22,7 @@
|
|||
docker
|
||||
drpc.defaultPackage.${system}
|
||||
exa
|
||||
gcc
|
||||
getopt
|
||||
git
|
||||
gnumake
|
||||
|
@ -109,6 +110,7 @@
|
|||
# Increase memory allocation to NodeJS
|
||||
"NODE_OPTIONS=--max_old_space_size=8192"
|
||||
"TERM=xterm-256color"
|
||||
"LANG=en_US.UTF-8"
|
||||
];
|
||||
# Builds our development environment image with all the tools included.
|
||||
# Using Nix instead of Docker is **significantly** faster. This _build_
|
||||
|
@ -179,20 +181,25 @@
|
|||
(builtins.readFile "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt")
|
||||
)
|
||||
];
|
||||
# Required for the UTF-8 locale to exist!
|
||||
extraCommands = ''
|
||||
mkdir -p usr/lib/locale
|
||||
cp -a ${pkgs.glibcLocales}/lib/locale/locale-archive usr/lib/locale/locale-archive
|
||||
'';
|
||||
|
||||
config = {
|
||||
Env = devEnvVars;
|
||||
Entrypoint = [ "/bin/bash" ];
|
||||
User = "coder";
|
||||
};
|
||||
config = {
|
||||
Env = devEnvVars;
|
||||
Entrypoint = [ "/bin/bash" ];
|
||||
User = "coder";
|
||||
};
|
||||
in
|
||||
{
|
||||
};
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
devEnvImage = devEnvImage;
|
||||
};
|
||||
defaultPackage = formatter; # or replace it with your desired default package.
|
||||
devShell = pkgs.mkShell { buildInputs = devShellPackages; };
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue