about summary refs log tree commit diff
path: root/nix/buildLisp
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-11-08T18·16+0100
committertazjin <mail@tazj.in>2020-11-08T18·35+0000
commit31939acd6c4809a2c0428950a6008dbd16b5dea8 (patch)
tree374fd242a6657a60f5e53e36489c66fc82420c31 /nix/buildLisp
parent1d71c29919cc631b9d13f8bfbade167789bbec45 (diff)
fix(buildLisp): Override LANG in sbclWith for misconfigured machines r/1873
Machines on which LANG is misconfigured have trouble with SBCL loading
files that contain characters in certain encodings. This overrides
whichever local LANG (if any) is set.

Change-Id: Ic4341a01c4393e7f697de6cecc58dea4f2d85987
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2076
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'nix/buildLisp')
-rw-r--r--nix/buildLisp/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix
index 9538f085299f..fe43c895f416 100644
--- a/nix/buildLisp/default.nix
+++ b/nix/buildLisp/default.nix
@@ -247,7 +247,8 @@ let
   sbclWith = deps:
   let lispDeps = filter (d: !d.lispBinary) (allDeps deps);
   in writeShellScriptBin "sbcl" ''
-    export LD_LIBRARY_PATH=${lib.makeLibraryPath (allNative [] lispDeps)};
+    export LD_LIBRARY_PATH="${lib.makeLibraryPath (allNative [] lispDeps)}"
+    export LANG="C.UTF-8"
     exec ${sbcl}/bin/sbcl ${lib.optionalString (deps != []) "--load ${writeText "load.lisp" (genLoadLisp lispDeps)}"} $@
   '';
 in {