cabal2nix icon indicating copy to clipboard operation
cabal2nix copied to clipboard

Generate `meta.longDescription`

Open srid opened this issue 2 years ago • 2 comments

When the cabal file has synopsis and description properties, cabal2nix should translate them to Nix's meta.description and meta.longDescription correspondingly.

srid avatar Aug 24 '23 14:08 srid

synopsis is mapped to description. Also mapping description to longDescription may not be a good idea for nixpkgs, as it would probably dramatically inflate the size of the already huge hackage-packages.nix. We could add it as an optional feature, but I don't think it is very useful outside of nixpkgs.

sternenseemann avatar Aug 24 '23 14:08 sternenseemann

We could add it as an optional feature, but I don't think it is very useful outside of nixpkgs.

Well, a bunch of tools do use longDescription. For eg. https://search.nixos.org/packages does. And 3rd party tools may as well. So +1 on having it as optional (leaving it disabled for pkgs.haskellPackages.*).

srid avatar Aug 24 '23 14:08 srid