Skip to content

Commit

Permalink
flake: export LC_ALL in shell hook to fix ansible-lint
Browse files Browse the repository at this point in the history
On some systems, the nix development shell based on this flake has a
misconfigured locale, which causes ansible-lint to crash. Exporting the
`LC_ALL` variable fixes the issue (other workarounds are discussed
in NixOS/nixpkgs#223151).
  • Loading branch information
aochagavia committed Nov 7, 2023
1 parent 9871918 commit 1b25243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
pkgs.mkShell {
shellHook = ''
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
export LC_ALL="C.UTF-8"
'';
nativeBuildInputs = devDeps ++ [ rustc ];
};
Expand Down

0 comments on commit 1b25243

Please sign in to comment.