-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix-build fails when "src" contains Unicode characters, i.e. "src = /tmp/créatúr" #8123
Comments
In your workflow you run nix-build within a nix-shell? (Looks strange.) |
I exit nix-shell before running nix-build. (I just use nix-shell to try things out). Sorry for the confusion. |
I think the problem may be that the directory name itself contains accented characters ("créatúr"). Renaming the directory seems to have got me past that point. |
|
(triage) I supposed this hasn’t changed yet? If you create an issue in the nix repo we can close here. |
Can't reproduce this with
However,
|
I have a couple of accented characters in my .cabal file (but only in the
description
,copyright
andauthor
fields). This file works fine when I build it on a non-NixOS system with sandboxes, but on a NixOS system, the nix-build step causes an error:And if I do
nix-build --show-trace
, I get:I think this is a bug. Although the call to
nix-build
is what triggers the error, if I understand correctly,nix-build
doesn't know anything about cabal files, so I suspect the problem occurs elsewhere.The files
creatur.cabal
,shell.nix
,project.nix
, anddefault.nix
are here: https://gist.github.com/mhwombat/716cd1cc181bac64991b'My workflow:
cabal2nix ./. --shell > shell.nix
cabal2nix ./. > project.nix
nix-shell
nix-build
(which produces the error)The text was updated successfully, but these errors were encountered: