Skip to content

How to use hdevtools with nix?  #82

Description

@AesaKamar

Problem Statement

I'm trying to use hdevtools in projects built with nix, and following along with the examples from Miso.

Context

Both ghc and cabal are installed via nix-env.

Reproduction steps

When I try to use hdevtools to check the file Main.hs in https://github.com/dmjio/miso/tree/master/sample-app

After a successful invocation of $ nix-build, I execute

hdevtools check Main.hs -S -c --ghcjs -g -v

(The flags indicate: Not to use stack, pass the --ghcjs flag to cabal, and the --verbose flag to ghc. )

Execution yields this error

cannot satisfy -package-id base-4.8.0.0-2AGdKkG2dNc5RNvA28euOd

I also get several warnings intermittently about

package XYZ.0.0.0-someShaHash is unusable due to shadowed dependencies:
      base-4.10.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions