-
Notifications
You must be signed in to change notification settings - Fork 841
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
error: package id couldn't be found #238
Comments
@donnut if you're on Nix I wouldn't recommend attempting to use the system ghc and instead let stack use its own GHC if possible. Much of the benefit of Nix+Haskell is in caching/managing package dependencies, but if you're using Stack you're using Stackage/LTS snapshots anyway. |
Fairly certain nix is the issue, what do you get when you run:
Since stack uses the Cabal library to do the building, it requires it to be already present. Also, can you try with If this turns out to be the issue, it would be good to get this documented in the Wiki's FAQ page. |
ghc-pkg list Cabal issues a long list: and
|
You'd need to use |
If you're building stack from master, you can now add |
@donnut Should we consider this issue resolved? |
Yes, it works when I keep using `--no-system-ghc. |
Installed
stack
on Arch Linus. cabal and ghc are installed usingnix
. Runningstack build
in an empty directory gives the output:I tried
stack build --system-ghc
, with the same result.Running
stack ghc
outputs:Is
nix
the problem here? Is it correct to say that I don't neednix
anymore to use different versions of ghc?The text was updated successfully, but these errors were encountered: