Skip to content

Commit e12d731

Browse files
committed
fix: add locale to dogfood image
1 parent 95458ac commit e12d731

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

flake.nix

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
# Increase memory allocation to NodeJS
110110
"NODE_OPTIONS=--max_old_space_size=8192"
111111
"TERM=xterm-256color"
112+
"LANG=en_US.UTF-8"
112113
];
113114
# Builds our development environment image with all the tools included.
114115
# Using Nix instead of Docker is **significantly** faster. This _build_
@@ -179,20 +180,25 @@
179180
(builtins.readFile "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt")
180181
)
181182
];
183+
# Required for the UTF-8 locale to exist!
184+
extraCommands = ''
185+
mkdir -p usr/lib/locale
186+
cp ${pkgs.glibcLocales}/lib/locale/locale-archive usr/lib/locale/locale-archive
187+
'';
182188

183-
config = {
184-
Env = devEnvVars;
185-
Entrypoint = [ "/bin/bash" ];
186-
User = "coder";
187-
};
189+
config = {
190+
Env = devEnvVars;
191+
Entrypoint = [ "/bin/bash" ];
192+
User = "coder";
193+
};
188194
};
189-
in
190-
{
195+
in
196+
{
191197
packages = {
192198
devEnvImage = devEnvImage;
193199
};
194200
defaultPackage = formatter; # or replace it with your desired default package.
195201
devShell = pkgs.mkShell { buildInputs = devShellPackages; };
196-
}
197-
);
198-
}
202+
}
203+
);
204+
}

0 commit comments

Comments
 (0)