Skip to content

Commit 88de63f

Browse files
kylecarbsmafredri
andauthored
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>
1 parent 95458ac commit 88de63f

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

flake.nix

+17-10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
docker
2323
drpc.defaultPackage.${system}
2424
exa
25+
gcc
2526
getopt
2627
git
2728
gnumake
@@ -109,6 +110,7 @@
109110
# Increase memory allocation to NodeJS
110111
"NODE_OPTIONS=--max_old_space_size=8192"
111112
"TERM=xterm-256color"
113+
"LANG=en_US.UTF-8"
112114
];
113115
# Builds our development environment image with all the tools included.
114116
# Using Nix instead of Docker is **significantly** faster. This _build_
@@ -179,20 +181,25 @@
179181
(builtins.readFile "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt")
180182
)
181183
];
184+
# Required for the UTF-8 locale to exist!
185+
extraCommands = ''
186+
mkdir -p usr/lib/locale
187+
cp -a ${pkgs.glibcLocales}/lib/locale/locale-archive usr/lib/locale/locale-archive
188+
'';
182189

183-
config = {
184-
Env = devEnvVars;
185-
Entrypoint = [ "/bin/bash" ];
186-
User = "coder";
187-
};
190+
config = {
191+
Env = devEnvVars;
192+
Entrypoint = [ "/bin/bash" ];
193+
User = "coder";
194+
};
188195
};
189-
in
190-
{
196+
in
197+
{
191198
packages = {
192199
devEnvImage = devEnvImage;
193200
};
194201
defaultPackage = formatter; # or replace it with your desired default package.
195202
devShell = pkgs.mkShell { buildInputs = devShellPackages; };
196-
}
197-
);
198-
}
203+
}
204+
);
205+
}

0 commit comments

Comments
 (0)