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

haskell.nix exactDeps is fragile #876

Open
dhess opened this issue Feb 19, 2023 · 0 comments
Open

haskell.nix exactDeps is fragile #876

dhess opened this issue Feb 19, 2023 · 0 comments
Labels
blocked/upstream ❌ Blocked by upstream issue bug 🐞 A confirmed bug Nix Nix- or nixpkgs-related tracking This is a tracking issue

Comments

@dhess
Copy link
Member

dhess commented Feb 19, 2023

This issue tracks an upstream issue in haskell.nix. Specifically, the exactDeps setting for the project's shell breaks when source-repository-package is also used:

This means:

  • whenever the occasion arises that we require a source-repository-package in our cabal.project, we must disable exactDeps; and
  • this will cause our HLS check to fail, because Nix can't hit the network while building a derivation.

There's not much we can do about this until haskell.nix finds a workaround, or it's fixed in Cabal (e.g., see haskell/cabal#8434).

Thus far, we've only needed source-repository-package from time to time. If it becomes more frequently necessary, we could resort to running our own Hackage repo for such packages. See https://github.com/input-output-hk/cardano-haskell-packages.

Other potentially relevant links:

@dhess dhess added tracking This is a tracking issue blocked/upstream ❌ Blocked by upstream issue bug 🐞 A confirmed bug Nix Nix- or nixpkgs-related labels Feb 19, 2023
dhess added a commit that referenced this issue Feb 19, 2023
Unfortunately, this is required when we use a
`source-repository-package`, as we're now doing for the unreleased
Selda that we're using.

See:
#876
dhess added a commit that referenced this issue Feb 23, 2023
Unfortunately, this is required when we use a
`source-repository-package`, as we're now doing for the unreleased
Selda that we're using.

See:
#876
dhess added a commit that referenced this issue Mar 1, 2023
Unfortunately, this is required when we use a
`source-repository-package`, as we're now doing for the unreleased
Selda that we're using.

See:
#876
dhess added a commit that referenced this issue Mar 1, 2023
Unfortunately, this is required when we use a
`source-repository-package`, as we're about to do for an
as-yet-unreleased version of Selda.

See:
#876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/upstream ❌ Blocked by upstream issue bug 🐞 A confirmed bug Nix Nix- or nixpkgs-related tracking This is a tracking issue
Projects
None yet
Development

No branches or pull requests

1 participant