-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
ember-language-server: init at 2.30.5 #382209
ember-language-server: init at 2.30.5 #382209
Conversation
Some suggestions: diff --git a/pkgs/by-name/em/ember-language-server/package.nix b/pkgs/by-name/em/ember-language-server/package.nix
index e6306e56ec2a..9863dbfbbff1 100644
--- a/pkgs/by-name/em/ember-language-server/package.nix
+++ b/pkgs/by-name/em/ember-language-server/package.nix
@@ -1,7 +1,6 @@
{
lib,
stdenv,
- mkYarnPackage,
fetchFromGitHub,
fetchYarnDeps,
nodejs,
@@ -10,19 +9,19 @@
yarnBuildHook,
}:
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
pname = "ember-language-server";
version = "2.30.5";
src = fetchFromGitHub {
owner = "ember-tooling";
- repo = pname;
- tag = "v${version}";
+ repo = "ember-language-server";
+ tag = "v${finalAttrs.version}";
hash = "sha256-/6j71pBmZor7C1u9BkptwwQonh6ZWoLmMDCMOGCpMik=";
};
yarnOfflineCache = fetchYarnDeps {
- yarnLock = src + "/yarn.lock";
+ yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-vWCG+FDf6XTNrgqOQGMnE6xNZ5A8PU5DA+FcTLLurIg=";
};
@@ -40,11 +39,12 @@ stdenv.mkDerivation rec {
ln -s $out/bin/@ember-tooling/ember-language-server $out/bin/ember-language-server
'';
- meta = with lib; {
+ meta = {
description = "Language Server Protocol implementation for Ember.js projects";
homepage = "https://github.com/ember-tooling/ember-language-server";
- license = licenses.mit;
- maintainers = with maintainers; [ ThaoTranLePhuong ];
+ changelog = "https://github.com/ember-tooling/ember-language-server/blob/master/CHANGELOG.md";
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [ ThaoTranLePhuong ];
mainProgram = "ember-language-server";
};
-}
+}) |
@Tert0 Just a small question about this suggested change:
Is there a reason why repeating the package name is preferred over using the variable? |
Yes, see #277994 |
Please reorder and squash the commits into this (in this order):
|
f74c6e1
to
5a558e3
Compare
5a558e3
to
b3de91e
Compare
b3de91e
to
4ef70a5
Compare
Generated using Command: Logs: https://github.com/Thao-Tran/nixpkgs-review-gha/actions/runs/13357426091
|
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.
Grats on your first contribution to nixpkgs! |
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.