NixOS / cabal2nix

Generate Nix build instructions from a Cabal file
https://haskell4nix.readthedocs.io
Other
352 stars 154 forks source link

Change boolattr to just always write out #583

Open locallycompact opened 1 year ago

sternenseemann commented 1 year ago

I expect this will quite significantly inflate the size of the already huge hackage-packages.nix in nixpkgs, so it may not be a good idea even though it has some merits.

locallycompact commented 1 year ago

Can we make it so the writer can be injected into cabal2nix'' somehow? I'm using it via library call.

sternenseemann commented 1 year ago

I don't understand what you mean, could you clarify?

locallycompact commented 1 year ago

The Pretty Derivation instance I can't alter without forking. Maybe this should not be an instance, but an explicit parameter to cabal2nix' instead. Then I can define my own pretty function for Derivation that does what I want.