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

Shell when included with packagesFrom stops building #315

Open
zmrocze opened this issue May 23, 2024 · 2 comments
Open

Shell when included with packagesFrom stops building #315

zmrocze opened this issue May 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zmrocze
Copy link

zmrocze commented May 23, 2024

Describe the bug

Given:

devshells.default.devshell = {
  name = "Haskell shell";
  packagesFrom = [ config.devShells.haskell ];
}

The default shell fails to build eventhough the original haskell shell builds. The default shell is empty otherwise and doesn't define any additional commands or dependencies.

Steps To Reproduce

Reproduction exists in the flake: https://github.com/zmrocze/reproduce-haskell.nix-template-shell-doesnt-build. Run:

nix develop github:zmrocze/reproduce-haskell.nix-template-shell-doesnt-build#default

and observe a failed build with:

error: collision between `/nix/store/xvfiswlgj9m2v5xhx1i09rsny9w6470n-vector-lib-vector-0.13.1.0/package.conf.d/package.cache' and `/nix/store/5mln06qzjihh3fp7na9ghz51rnni55gx-containers-lib-containers-0.6.5.1/package.conf.d/package.cache'

Then change default to haskell and observe a success, eventhough I expect shells to be the same.

Expected behavior

I expect the default shell to functionally the same as the haskell shell from which it originates. I wouldn't expect an error of this kind.

@zmrocze zmrocze added the bug Something isn't working label May 23, 2024
@zmrocze
Copy link
Author

zmrocze commented May 23, 2024

ties in with #311

@elland
Copy link

elland commented Jun 8, 2024

this happens for me on aarch64-darwin while it doesn't happen on x86_64-linux.
here's where you can find the code: MangoIV/cabal-audit@bc82249

not using the devShell generated by the haskell shellFor function via devshell fixes the problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants