-
-
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
Conversation
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.
Tested:
- Builds fine on x86_64-linux
--version
works- Diff with previous version:
The output from this PR has aEDIT: that's mybin/carto
, which is a good improvement.find
invocation not following symlinks, ignore :)- However the man page isn't properly copied to
share/man/carto.1
anymore. That's likely abuildNpmPackage
bug/missing feature? I don't really see that as a major issue though.
3c205bc
to
1d6cde5
Compare
@@ -25,8 +25,7 @@ npmInstallHook() { | |||
else "invalid type " + $typ | halt_error end' "${npmWorkspace-.}/package.json") | |||
|
|||
while IFS= read -r man; do | |||
mkdir -p "$out/share/man" | |||
ln -s "$packageOut/$man" "$out/share/man" | |||
installManPage "$packageOut/$man" |
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.
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.
Still LGTM. Leaving another day or so for the maintainer to possibly comment on this, but I think it's ready to merge.
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.
Besides a few nitpicks, LGTM.
description = "Fast CSS-like map stylesheets"; | ||
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 comment
The 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 mainProgram
as it is unnecessary.
mainProgram = "carto"; |
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.
Not anymore: #246386
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.
Thanks, I didn't know.
1d6cde5
to
96e5dce
Compare
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.
LGTM.
Result of 1 package marked as broken and skipped:
6 packages failed to build:
150 packages built:
|
Description of changes
See #229475
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)cc @Luflosi who originally packaged it in #187891