Skip to content
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

Cabal build not locating installed packages #117

Open
Fiftyw3bs opened this issue Dec 28, 2023 · 1 comment
Open

Cabal build not locating installed packages #117

Fiftyw3bs opened this issue Dec 28, 2023 · 1 comment

Comments

@Fiftyw3bs
Copy link

Fiftyw3bs commented Dec 28, 2023

I've created a development environment using the following command:

nix develop github:input-output-hk/devx#ghc92 --no-write-lock-file --refresh

But after installing packages my project is dependent on using cabal install ... and try to build my project, it gives an error that points to the package not existing.

Indeed, when I ran ghc-pkg list, the package isn't listed there, but in the $CABAL_DIR/packages/hackage... folder, the installed package is there.

Any help would be appreciated.

@sgillespie
Copy link
Contributor

Hello, devx sets an alternate CABAL_DIR ($HOME/.cabal-devx), so it won't find packages that were previously installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants