-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
TMPDIR handling by nix-shell #395
Copy link
Copy link
Open
Labels
UXThe way in which users interact with Nix. Higher level than UI.The way in which users interact with Nix. Higher level than UI.nix-shellnix-shell, nix develop, nix print-dev-env, etcnix-shell, nix develop, nix print-dev-env, etc
Metadata
Metadata
Assignees
Labels
UXThe way in which users interact with Nix. Higher level than UI.The way in which users interact with Nix. Higher level than UI.nix-shellnix-shell, nix develop, nix print-dev-env, etcnix-shell, nix develop, nix print-dev-env, etc
Fields
Give feedbackNo fields configured for issues without a type.
Hi,
Lethalman in #nixos has asked me to report this. I've had trouble with building a Haskell Yesod project using a nix-shell on Ubuntu 14.04. I get a GHC panic error when building with:
But not when building with
nix-build. My setup is the standard code that you get fromyesod initalong with the followingdefault.nix:It seems to come down to my normal shell not having TMPDIR set (I'm not sure why) so when I use
nix-shell --pureit is picking up theXDG_RUNTIME_DIR=/run/user/1000/and using that as the TMP directory. Lethalman pointed to this line.That directory was then potentially upsetting GHC as it didn't have the correct permissions or something. I'm unfortunately new to nix & haskell so I am reporting what others have told me. Happy to help where I can though.
Cheers,
Michael