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

hackage2nix: clear homepage #352

Merged
merged 1 commit into from May 29, 2018
Merged

hackage2nix: clear homepage #352

merged 1 commit into from May 29, 2018

Conversation

ryantm
Copy link
Member

@ryantm ryantm commented May 28, 2018

The hackage page is always there, and supports a TLS connection.

@@ -153,6 +153,7 @@ main = do
& metaSection.hydraPlatforms %~ (`Set.difference` Map.findWithDefault Set.empty name (dontDistributePackages config))
& metaSection.maintainers .~ Map.findWithDefault Set.empty name globalPackageMaintainers
& metaSection.hydraPlatforms %~ (if isInDefaultPackageSet then id else const Set.empty)
& metaSection.homepage .~ ("https://hackage.haskell.org/package/" ++ display pkgId)
Copy link
Member

@peti peti May 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please set homepage to an empty string "" instead to suppress the meta.homepage output altogether. That way, we can let the generic builder construct the appropriate URL from its default settings rather than repeating an almost identical Hackage URL several thousand times in the generated file.

@ryantm ryantm force-pushed the homepage branch 2 times, most recently from 5a0adc7 to 1be737f Compare May 28, 2018 23:22
@ryantm
Copy link
Member Author

ryantm commented May 28, 2018

@peti fixed.

homepage will be set to Hackage by the generic builder.

The hackage page is always there, and supports a TLS connection.
@ryantm ryantm changed the title hackage2nix: set homepage to Hackage hackage2nix: clear homepage May 29, 2018
@peti peti merged commit 580e4ea into NixOS:master May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants