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 rebuilds the world inside nix develop #1034

Open
locallycompact opened this issue Aug 21, 2023 · 2 comments
Open

cabal rebuilds the world inside nix develop #1034

locallycompact opened this issue Aug 21, 2023 · 2 comments
Labels

Comments

@locallycompact
Copy link
Contributor

locallycompact commented Aug 21, 2023

The nix build works fine, but

nix develop
cabal build all

results in cabal rebuilding libraries that should already be supplied by the shell

In order, the following will be built (use -v for more details):
 - cardano-data-1.1.0.0 (lib:testlib) (requires download & build)
 - hspec-discover-2.11.4 (lib) (requires download & build)
 - hydra-prelude-0.12.0 (lib) (cannot read state cache)
 - ouroboros-consensus-0.9.0.0 (lib) (requires download & build)
 - plutus-ledger-api-1.7.0.1 (lib) (requires download & build)
 - hspec-discover-2.11.4 (exe:hspec-discover) (requires download & build)
 - ouroboros-consensus-diffusion-0.7.0.0 (lib) (requires download & build)
 - plutus-ledger-api-1.7.0.1 (lib:plutus-ledger-api-testlib) (requires download & build)
 - cardano-ledger-binary-1.1.1.1 (lib) (requires download & build)
 - cardano-ledger-binary-1.1.1.1 (lib:testlib) (requires download & build)
 - cardano-data-1.1.0.0 (lib) (requires download & build)
 - cardano-crypto-wrapper-1.5.1.0 (lib) (requires download & build)
 - small-steps-test-1.0.0.1 (lib) (requires download & build)
 - set-algebra-1.1.0.1 (lib) (requires download & build)
 - cardano-ledger-byron-1.0.0.2 (lib) (requires download & build)
 - cardano-crypto-test-1.5.0.0 (lib) (requires download & build)
 - byron-spec-ledger-1.0.0.1 (lib) (requires download & build)
 - cardano-ledger-core-1.4.1.0 (lib) (requires download & build)
 - byron-spec-chain-1.0.0.1 (lib) (requires download & build)
 - cardano-ledger-shelley-1.4.2.0 (lib) (requires download & build)
 - cardano-ledger-byron-test-1.5.0.0 (lib) (requires download & build)
 - cardano-ledger-allegra-1.2.1.0 (lib) (requires download & build)
 - cardano-ledger-core-1.4.1.0 (lib:testlib) (requires download & build)
 - cardano-ledger-mary-1.3.1.0 (lib) (requires download & build)
 - cardano-ledger-shelley-1.4.2.0 (lib:testlib) (requires download & build)
 - cardano-ledger-alonzo-1.3.3.0 (lib) (requires download & build)
 - cardano-ledger-allegra-1.2.1.0 (lib:testlib) (requires download & build)
 - cardano-ledger-babbage-1.4.2.0 (lib) (requires download & build)
 - cardano-ledger-mary-1.3.1.0 (lib:testlib) (requires download & build)
 - cardano-ledger-conway-1.6.3.0 (lib) (requires download & build)
 - cardano-ledger-alonzo-1.3.3.0 (lib:testlib) (requires download & build)
 - cardano-protocol-tpraos-1.0.3.3 (lib) (requires download & build)
 - cardano-ledger-api-1.3.1.0 (lib) (requires download & build)
 - cardano-ledger-babbage-1.4.2.0 (lib:testlib) (requires download & build)
 - ouroboros-consensus-protocol-0.5.0.4 (lib) (requires download & build)
 - ouroboros-consensus-cardano-0.7.0.0 (lib) (requires download & build)
 - cardano-api-8.11.0.0 (lib:internal) (requires download & build)
@locallycompact locallycompact added the bug 🐛 Something isn't working label Aug 21, 2023
@locallycompact locallycompact changed the title cabal build does not work inside nix develop cabal rebuilds the world inside nix develop Aug 21, 2023
@ffakenz
Copy link
Contributor

ffakenz commented Aug 23, 2023

after exploration we found 2 potential alternatives:

  • either derive the plan from stack.yaml via haskell.nix
  • or use horizon

both are time consuming tasks.

although, we don't think the stack alternative is not really worth it, so we might give horizon a try.

keep in mind horizon brings a massive architecture change.

Note: Link to #nix-channel thread

@ch1bo ch1bo added red bin and removed bug 🐛 Something isn't working labels Sep 8, 2023
@locallycompact
Copy link
Contributor Author

This is a public sublibrary problem:

input-output-hk/haskell.nix#1662

haskell/cabal#6039

There is no current workaround, you have to compile the things locally again with Cabal.

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

No branches or pull requests

3 participants