-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
carto: use buildNpmPackage #249879
carto: use buildNpmPackage #249879
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,29 @@ | ||||
{ lib | ||||
, buildNpmPackage | ||||
, fetchFromGitHub | ||||
}: | ||||
|
||||
buildNpmPackage rec { | ||||
pname = "carto"; | ||||
version = "1.2.0"; | ||||
|
||||
src = fetchFromGitHub { | ||||
owner = "mapbox"; | ||||
repo = "carto"; | ||||
rev = "v${version}"; | ||||
hash = "sha256-TylMgb2EI52uFmVeMJiQltgNCSh6MutFwUjsYC7gfEA="; | ||||
}; | ||||
|
||||
npmDepsHash = "sha256-8M9hze71bQWhyxcXeI/EOr0SQ+tx8Lb9LfvnGxYYo0A="; | ||||
|
||||
dontNpmBuild = true; | ||||
|
||||
meta = { | ||||
changelog = "https://github.com/mapbox/carto/blob/${src.rev}/CHANGELOG.md"; | ||||
description = "Mapnik stylesheet compiler"; | ||||
homepage = "https://github.com/mapbox/carto"; | ||||
license = lib.licenses.asl20; | ||||
mainProgram = "carto"; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both the package and the binary it provides are called "carto", right? In this case you should remove
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not anymore: #246386 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I didn't know. |
||||
maintainers = with lib.maintainers; [ Luflosi ]; | ||||
}; | ||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't quite accurate either. According to https://docs.npmjs.com/cli/v9/configuring-npm/package-json/#man we're supposed to modify the name of the man page. That would be easiest to do if we modify
installManPage
to accept the man page name as an optional argument.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about "installManPage", thanks! No objection to leaving that bug for now, it's still better than the previous or current status and I don't want to block this particular PR on the man page question.