-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
haskell developPackage error: creating directory '/nix/var #45775
Comments
I can't reproduce this. |
@mpickering thanks for trying. |
I can reproduce this with
Note that your hs.cabal is a symlink to a file in /home/teto. |
thanks ! The symlink is valid
but it's cool you could reproduce it with an empty dir. |
But it's not dereferenced during import to the store.
results in
Or, without the sandbox but still using normal nixbld isolation
|
right, thanks for investigating this. I hadn't thought about it because hs.cabal was originally a real file and I had (a different) problems. I replaced it iwth a hardlink and it seems fine (hell there are other haskell errors but I've gotten used to override everything). |
No problem! :) The error message isn't exactly very clear, and could be worth improving, if you want to file an issue! :) |
I got this error for a different reason. I had my Haskell package named differently (e.g. I read the code and realised it expects the directory to be named the same. In my case I just renamed the directory. |
Ugh, such code shouldn't exist :) So what happens is:
|
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Since this issue was opened, it appears that
|
Issue description
I try using haskell's developPackage but the
that I run from a folder that contains
hs/hs.cabal
and the haskell source code. Then I run nix-shelland the error is not that clear, why would it try to create /nix/var ?
the hs.cabal file contains:
Steps to reproduce
Technical details
"x86_64-linux"
Linux 4.14.24, NixOS, 18.09.git.31145cb (Jellyfish)
yes
yes
nix-env (Nix) 2.0.4
/home/teto/nixpkgs
The text was updated successfully, but these errors were encountered: