aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <rbt@sent.as>2024-03-14 13:44:50 -0700
committerRebecca Turner <rbt@sent.as>2024-03-14 14:06:23 -0700
commit9f242fae76e3dccaba08e28d7f1fc6e4124db839 (patch)
tree53f917be7d42247117e9850a322591c5bd0ad34f
parentcaded0d55ecfd663ee72599aea2c5554db2b8eef (diff)
Only set `LOCALE_ARCHIVE` on Linux
`macOS` does not have `glibcLocales`: error: … while calling the 'derivationStrict' builtin at /derivation-internal.nix:9:12: 8| 9| strict = derivationStrict drvAttrs; | ^ 10| … while evaluating derivation 'nix-2.90.0' whose name attribute is located at /nix/store/y0c95bwyvs80pm69hdd4b11pyq2ghiwh-source /pkgs/stdenv/generic/make-derivation.nix:348:7 … while evaluating attribute 'LOCALE_ARCHIVE' of derivation 'nix-2.90.0' at /nix/store/ng5qzbyv4902b4pw7g35caqw5cnmryf9-source/flake.nix:331:15: 330| # Required to make non-NixOS Linux not complain about missing loc Change-Id: I4464484a0eca12b5e073d49d900b6f25886245c1
-rw-r--r--flake.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 0afc723b0..c48cc7478 100644
--- a/flake.nix
+++ b/flake.nix
@@ -328,7 +328,7 @@
strictDeps = false;
# Required to make non-NixOS Linux not complain about missing locale files during configure in a dev shell
- LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
+ ${if stdenv.isLinux then "LOCALE_ARCHIVE" else null} = "${pkgs.glibcLocales}/lib/locale/locale-archive";
shellHook = ''
PATH=$prefix/bin:$PATH