Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Mar 25, 2024
1 parent 6156cc9 commit 896b836
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion judge.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let
php = pkgs.php.withExtensions ({ enabled, all }: [ ]);
cyaron = import ./cyaron.nix { inherit pkgs; inherit system; };
xeger = import ./xeger.nix { inherit pkgs; inherit system; };
locales = (pkgs.glibcLocales.override { locales = [ "zh_CN.UTF-8" "en_US.UTF-8" ]; });
in
pkgs.buildEnv {
name = "judge${if minimal then "-minimal" else ""}";
Expand All @@ -22,7 +23,7 @@ pkgs.buildEnv {
gcc
pkgs.fpc
pkgs.glibc
(pkgs.glibcLocales.override { locales = [ "en_US.UTF-8" ]; })
locales
] ++ (if !minimal then
((with pkgs; [
gdb
Expand Down Expand Up @@ -66,5 +67,6 @@ pkgs.buildEnv {
mkdir $out/buildInfo
echo 'root:x:0:0:root:/root:/bin/bash' >$out/etc/passwd
date >$out/buildInfo/timestamp
ln -sf ${locales}/lib/locale/locale-archive $out/usr/lib/locale
'';
}

0 comments on commit 896b836

Please sign in to comment.