-
-
Notifications
You must be signed in to change notification settings - Fork 12.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
haskell: failure building hoogle env #71900
Comments
@v217 Could you share the I can try running it on my machine and seeing if I get an error. If I don't, it may be the issue you've linked to. |
Sure, my {
packageOverrides = super: let self = super.pkgs; in
{
myHaskellEnv = self.haskellPackages.ghcWithHoogle
(haskellPackages: with haskellPackages; [
shh shh-extras Glob ghci-pretty
]);
};
} The /nix folder is on the root partition which is formatted as btrfs with zstd compression enabled. |
@v217 I don't think that could be the entire expression, since $ cd /some/path/to/nixpkgs
$ git checkout release-19.09
$ git pull
...
$ nix-build -E 'with import ./. {}; haskellPackages.ghcWithHoogle (haskellPackages: with haskellPackages; [ shh shh-extras Glob ghci-pretty ])'
error: Package ‘shh-0.7.0.5’ in /home/illabout/git/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:211203 is marked as broken, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information) However, if I try the same expression without
This seems to indicate that this is not a Haskell problem, but instead possibly #29778, or some other problem. Might want to expand your comment here with more information (so that people don't have to read through this issue to figure out that this is not actually a Haskell-related problem): #29778 (comment) |
OK I tried to reinstall everything too. And I did run into the same error with shh? Apparently I changed something since the last install. ghcide uses an alternative haskell environment haskell.nix. So I try to use haskell.nix. Because ghcide allready installs all the dependencies I need eg. ghci-pretty hoogle (except shh ...) . Do you know how to modify my |
No I still get the same error with the unstable {
haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {};
packageOverrides = super: let self = super.pkgs; in
{
myHaskellEnv = self.haskellPackages.ghcWithHoogle
(haskellPackages: with haskellPackages; [
# libraries
# shh shh-extras Glob
ghci-pretty
# tools
]);
withHoogle = true;
};
} and did run again
or here the full log:
|
@v217 Sorry you've been having this issue. I think the debugging you've been doing seems to indicate this isn't a Haskell-related problem, but instead probably something like #29778. In that issue, some people have been able to patch nix to get rid of this problem. I suggest you attempt to patch nix in a similar way (and ask for help on that issue if you can't figure out how to do this), and see if it fixes the problem with using (Of course, as a quick workaround, maybe you could just use I'm going to close this, since it doesn't appear to be a Haskell-related problem (but instead should be #29778), but if you think this actually is Haskell-related, please feel free to re-open it. |
Yes I agree, I did not have this problem with the old fstab mount options! |
I followed the guide
https://nixos.org/nixpkgs/manual/#how-to-install-a-compiler-with-libraries-hoogle-and-documentation-indexes
and got this error
error: removing extended attribute 'btrfs.compression' from '/nix/store/2jfcllbzmlg37dm57bhz6kbar3ajvrm7-hoogle-local-0.1/share/doc/hoogle/hslogo-16.png': Permission denied
or the full output after running
nix-env -f "<nixpkgs>" -iA myHaskellEnv
:I use nixpkgs 19.09 on ubuntu.
The text was updated successfully, but these errors were encountered: