Skip to content

Calling cabal build in nix-shell fails #294

Closed
@codygman

Description

@codygman

Gives error:

[cody@nixos:~/code/haskell-language-server]$ nix-shell --pure --run "cabal build"
Warning: Requested index-state2020-07-27T12:40:45Z is newer than
'hackage.haskell.org'! Falling back to older state (2020-07-23T01:35:56Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: ghcide-0.2.0 (user goal)
[__1] next goal: lsp-test (dependency of ghcide)
[__1] rejecting: lsp-test-0.10.3.0/installed-BEL0YuFHxCdHyQYBLVjxpT (conflict:
ghcide => lsp-test>=0.11.0.2 && <0.12)
[__1] trying: lsp-test-0.11.0.2
[__2] trying: haskell-language-server-0.2.2.0 (user goal)
[__3] rejecting: haskell-language-server:!test (constraint from config file,
command line flag, or user target requires opposite flag selection)
[__3] rejecting: haskell-language-server:*test (conflict: lsp-test==0.11.0.2,
haskell-language-server *test => lsp-test>=0.11.0.3)
[__3] fail (backjumping, conflict set: haskell-language-server, lsp-test,
haskell-language-server:test)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ghcide, lsp-test,
haskell-language-server, haskell-language-server:test
Try running with --minimize-conflict-set to improve the error message.

Building with stack in the meantime and will report if that's an adequate workaround for the time being.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous integrationos: nixostype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions