NixOS / cabal2nix

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

Change boolattr to just always write out #583

Open locallycompact opened 2 years ago

sternenseemann commented 2 years 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 2 years ago

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

sternenseemann commented 2 years ago

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

locallycompact commented 2 years 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.