stack2nix icon indicating copy to clipboard operation
stack2nix copied to clipboard

stack2nix: user error (No such package ghci-8.6.3 in the cabal database. Did you run cabal update?)

Open commandodev opened this issue 6 years ago • 2 comments

I've installed stack2nix by running nix-build in the checkout and then I'm trying to run it with

⇒  ../../haskell/stack2nix/result/bin/stack2nix .                                                    ~/dev/adjoint/uplink_dev

Ensuring git version is >= 2 ...
Ensuring cabal version is >= 2 ...

+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.6.3 cabal://ALUT-2.4.0.2
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.6.3 cabal://ANum-0.2.0.2
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.6.3 cabal://Clipboard-2.3.2.0
....
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.6.3 cabal://zip-1.2.0
stack2nix: user error (No such package ghci-8.6.3 in the cabal database. Did you run cabal update?)

commandodev avatar Mar 14 '19 10:03 commandodev

OK seems that this version of ghci-8.6.3 isn't on hackage yet: https://www.stackage.org/lts-13.7/package/ghci-8.6.3

commandodev avatar Mar 14 '19 10:03 commandodev

In fact the packages of ghci available on hackage are all over the place: https://hackage.haskell.org/package/ghci

8.0.1, 8.0.2, 8.2.1, 8.2.2, 8.4.1, 8.4.2, 8.4.3, 8.6.1

8.4.3 isn't available in nixpkgs, and 8.4.4 isn't on hackage.

commandodev avatar Mar 14 '19 10:03 commandodev