Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate meta.longDescription #608

Open
srid opened this issue Aug 24, 2023 · 2 comments
Open

Generate meta.longDescription #608

srid opened this issue Aug 24, 2023 · 2 comments

Comments

@srid
Copy link

srid commented Aug 24, 2023

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

@sternenseemann
Copy link
Member

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.

@srid srid changed the title Generate meta.description and meta.longDescription Generate meta.longDescription Aug 24, 2023
@srid
Copy link
Author

srid commented Aug 24, 2023

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.*).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants