Conversation
…cabal2nix` expression;
| nixpkgs-fmt = { | ||
| enable = true; | ||
| # cabal2nix, nixpkgs-fmt both modifies default.nix, hence exlude fmt. | ||
| excludes = [ "cabal.nix" ]; |
There was a problem hiding this comment.
| excludes = [ "cabal.nix" ]; | |
| excludes = [ config.pre-commit.settings.hooks.cabal2nix.settings.output_filename ]; |
(Or you could use the config from pre-commit module)
There was a problem hiding this comment.
There was a problem hiding this comment.
Although this was not needed. But I put it just for example.
There was a problem hiding this comment.
Your link is just going to this very conversation. I don't know what you are referring to.
There was a problem hiding this comment.
How can you use it there? It'd be a cyclic dependency.
There was a problem hiding this comment.
This is for haskell-flake. There are in total 3 places where I am using cabal.nix
- While setting output_filename for
cabal2nixpre-commit - While setting exclude for
nixpkgs-fmt - For haskell-flake to refer to the cached
cabal2nixfile
In this particular case I was talking about 3.
ideally we can set at one place use it at all other places.
There was a problem hiding this comment.
Oh, right, you can just reuse the module option (3) in both the palces (1 & 2). Good idea.
flake.nix
Outdated
| fourmolu-nix.url = "github:jedimahdi/fourmolu-nix"; | ||
|
|
||
| git-hooks.url = "github:cachix/git-hooks.nix"; | ||
| git-hooks.url = "github:rsrohitsingh682/git-hooks.nix/cabal2nix"; |
There was a problem hiding this comment.
We need to get all git-hooks.nix PRs merged.

Uses srid/haskell-flake#382