Can you use a more recent cabal index than nixpkgs Haskell has? #197
Replies: 4 comments 3 replies
-
I'm not sure, but a good place to ask: https://app.element.io/#/room/#haskell:nixos.org |
Beta Was this translation helpful? Give feedback.
-
iiuc all-cabal-hashes is only referenced by the generation process and not by the generated code of the package set. |
Beta Was this translation helpful? Give feedback.
-
perhaps another solution would be tot have a |
Beta Was this translation helpful? Give feedback.
-
I've found a potential solution that is using haskell-flake, calamity 😄 https://github.com/simmsb/calamity-bot/blob/54e5059fcea7c4327a2a1df77eef656b62351301/flake.nix#L47 Add all-cabal-hashes input:
Then use in per-system:
|
Beta Was this translation helpful? Give feedback.
-
I think maybe you could update all-cabal-hashes and let your current version of nixpkgs use it?
Let me explain my problems and the solutions I've tried:
Problem: I needed to use a newer version of a package than nixpkgs has
Fix: Use the hackage version via
haskellProjects.default.packages = aeson.source = "newer version";
.Problem: The hackage index of
nixpkgs-unstable
is too old (from 8/17) to contain my packageSolution: Use the haskell-updates nixpkgs branch with
inputs.nixpkgs = github:nixos/nixpkgs/haskell-updates
Problem: I get an error building my Haskell project with the haskell-updates branch
Potential Solution: Replace only the all-cabal-hashes used but use the known working
nixpkgs-unstable
to build my Haskell project.That last one is what I'm asking about in the discussion title.
Beta Was this translation helpful? Give feedback.
All reactions