-
-
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
nodePackages.vsc-leetcode-cli: use buildNpmPackage #252441
Conversation
@@ -0,0 +1,25 @@ | |||
{ buildNpmPackage, fetchFromGitHub, lib, ... }: |
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.
{ buildNpmPackage, fetchFromGitHub, lib, ... }: | |
{ lib | |
, buildNpmPackage | |
, fetchFromGitHub | |
}: |
|
||
buildNpmPackage rec { | ||
pname = "vsc-leetcode-cli"; | ||
version = "2021-04-11-unstable"; |
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.
version = "2021-04-11-unstable"; | |
version = "unstable-2021-04-11"; |
pkgs/top-level/all-packages.nix
Outdated
@@ -36397,6 +36397,8 @@ with pkgs; | |||
|
|||
vpcs = callPackage ../applications/virtualization/vpcs { }; | |||
|
|||
vsc-leetcode-cli = callPackage ../applications/misc/vsc-leetcode-cli { }; |
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.
vsc-leetcode-cli = callPackage ../applications/misc/vsc-leetcode-cli { }; | |
vsc-leetcode-cli = callPackage ../tools/misc/vsc-leetcode-cli { }; |
because it's a CLI tool
2d3bc9d
to
d233899
Compare
|
||
buildNpmPackage { | ||
pname = "vsc-leetcode-cli"; | ||
version = "unstable-2021-04-11"; |
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.
Why don't we use the most recent commit and call it 2.8.1. Pretty sure that corresponds to what's on NPM.
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.
Because it isn't 2.8.1? Seems like 2.8.1 was published to NPM but not pushed to GitHub. The package.json on GitHub still has version 2.8.0 whereas NPM has ... 2.8.1. There may be no other differences and I don't care to diff it but even that one change is enough of a distinguishing characteristic for me.
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.
Oh you're right.
|
||
meta = with lib; { | ||
description = "A CLI tool for leetcode.com"; | ||
homepage = "https://github.com/leetcode-tools/leetcode-cli#readme"; |
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.
homepage = "https://github.com/leetcode-tools/leetcode-cli#readme"; | |
homepage = "https://github.com/leetcode-tools/leetcode-cli"; |
description = "A CLI tool for leetcode.com"; | ||
homepage = "https://github.com/leetcode-tools/leetcode-cli#readme"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ cpcloud ]; |
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.
Reference?
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.
@@ -0,0 +1,25 @@ | |||
{ buildNpmPackage, fetchFromGitHub, lib }: |
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.
Single lines are nicer.
d921997
to
5528b08
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 like something went wrong during a rebase.
5528b08
to
72ed25b
Compare
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/
)