nix-haskell and provide source-repository-packages to Cabal in shell
This is kind of irrelevant now that we're about to bump to HEAD anyway in order to make use of some new features.
nix-haskell and provide source-repository-packages to Cabal in shell
And actually, having the flake inputs be the source of truth is quite convenient, as I've just realised when running nix flake update hs-bindgen-src for the first time. Cabal has no equivalent CLI.
nix-haskell and provide source-repository-packages to Cabal in shell
The examples somehow avoid flake-utils. We should perhaps try to do the same.
nix-haskell and provide source-repository-packages to Cabal in shell
Oh, actually, they're just hardcoding x86_64-linux.
nix-haskell and provide source-repository-packages to Cabal in shell
I was hoping that these might just be picked up automatically from cabal.project. Haskell.nix does do this, but then Cabal in the shell insists on building the libraries again itself anyway, which to be fair doesn't happen with this approach. See issue.
nix-haskell and provide source-repository-packages to Cabal in shell
These two don't seem to be working.
nix-haskell and provide source-repository-packages to Cabal in shell
Matching to old cabal.project for now, but we should probably just let flake.lock do the pinning. Main thing is I've forgotten how exactly to set a specific commit with nix flake update... Actually to be honest at this point we could probably just use the latest HEAD anyway.
nix-haskell and provide source-repository-packages to Cabal in shell
This should just be haskell.shell. Patched to avoid an annoying warning on entering nix develop shell:
nix-haskell and provide source-repository-packages to Cabal in shell
To be fair, I don't think I tried withHaddock or equivalent with plain Haskell.nix, so my expectations may be wrong.
nix-haskell and provide source-repository-packages to Cabal in shell
To be fair, I don't think I tried withHaddock or equivalent with plain Haskell.nix, so my expectations may be wrong.
nix-haskell and provide source-repository-packages to Cabal in shell
Oh, actually, they're just hardcoding x86_64-linux.
Still, maybe I should look at using plain genAttrs instead. I know this is tricky with Haskell.Nix as it requires transposing the two…