diff options
author | Felix Buehler <account@buehler.rocks> | 2022-01-23 13:53:27 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2022-01-23 13:53:27 +0100 |
commit | 598b973406df1d05ad3b5eaee063ea1d24abda5c (patch) | |
tree | 3301e1076ff856690ca0aa0e48795d84476e4615 /pkgs/development/web/nodejs/nodejs.nix | |
parent | 430334ab383fba5139d452c2d09d8aa8f7cec06f (diff) |
nodejs: rename name to pname&version
Diffstat (limited to 'pkgs/development/web/nodejs/nodejs.nix')
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 72615b356222c..1e05850884c7a 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -19,7 +19,7 @@ let majorVersion = versions.major version; minorVersion = versions.minor version; - baseName = if enableNpm then "nodejs" else "nodejs-slim"; + pname = if enableNpm then "nodejs" else "nodejs-slim"; useSharedHttpParser = !stdenv.isDarwin && versionOlder "${majorVersion}.${minorVersion}" "11.4"; @@ -43,9 +43,7 @@ let extraConfigFlags = optionals (!enableNpm) [ "--without-npm" ]; self = stdenv.mkDerivation { - inherit version; - - name = "${baseName}-${version}"; + inherit pname version; src = fetchurl { url = "https://nodejs.org/dist/v${version}/node-v${version}.tar.xz"; |