-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
node-glob: use buildNpmPackage #250077
node-glob: use buildNpmPackage #250077
Conversation
6d68f7a
to
b4addcb
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.
Looks good but needs a rebase. I left a bunch of suggestions/nitpicks
3 packages built:
glob openmoji-black openmoji-color
Result of nixpkgs-review pr 250077
run on x86_64-linux 1
3 packages built:
- glob
- openmoji-black
- openmoji-color
pkgs/tools/misc/glob/default.nix
Outdated
}: | ||
|
||
buildNpmPackage rec { | ||
pname = "glob"; |
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.
we might want to name it node-glob like most distros
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.
I think the pname should definitely be glob. But we can call the attribute node-glob.
pkgs/tools/misc/glob/default.nix
Outdated
description = "The most correct and second fastest glob implementation in JavaScript"; | ||
homepage = "https://github.com/isaacs/node-glob"; | ||
license = lib.licenses.isc; | ||
mainProgram = "glob"; |
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.
if we name the package "glob", this line is unnecessary
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.
Wow, looks like I have a few patches to submit then
pkgs/tools/misc/glob/default.nix
Outdated
|
||
meta = { | ||
changelog = "https://github.com/isaacs/node-glob/blob/${src.rev}/changelog.md"; | ||
description = "The most correct and second fastest glob implementation in JavaScript"; |
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 reads more like a slogan than a description. Maybe simply "Glob implementation in JavaScript"
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.
I went with the most common description on Repology.
b4addcb
to
4088fb3
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.
Just needs a maintainer.
@dotlambda would you like to maintain the package? |
No. |
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.
Haha well I tried. Let's merge then, it's not like this had a maintainer before, and node-packages.nix is prone to conflicts
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/
)