nh2 / static-haskell-nix

easily build most Haskell programs into fully static Linux executables
388 stars 36 forks source link

No such package rio-0.1.10.0 in the cabal database #36

Closed nh2 closed 5 years ago

nh2 commented 5 years ago

Just filing this issue to be more googleable.

@borsboom got, when building the latest stack with https://github.com/nh2/static-haskell-nix/blob/master/static-stack/default.nix:

$ $(nix-build --no-link -A fullBuildScript --argstr stackDir ~/stack-release)
…
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.2.2 cabal://zlib-0.6.2
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.2.2 cabal://zlib-bindings-0.1.1.5
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.2.2 cabal://zot-0.0.3
stack2nix: user error (No such package rio-0.1.10.0 in the cabal database. Did you run cabal update?)

I suspect it's related to Cabal revisions or that date I tell to Hackage to pin against Cabal revisions.

I expect that the answer is that he has to bump this line to a date that is new enough to have the rio version he wants:

https://github.com/nh2/static-haskell-nix/blob/8d004d7ced9da947c785b93b4011f39367442339/static-stack/default.nix#L19

The issue can be closed if my suspicion is correct, and the error message should then be googleable.

nh2 commented 5 years ago

@borsboom reported:

Ok, after doing that it's getting farther.

So that's it.