Skip to content

Commit

Permalink
nodejs-11_x: init at 11.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma authored and selaux committed Dec 21, 2018
1 parent b3ad548 commit e6a86e6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/development/web/nodejs/nodejs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ with stdenv.lib;
{ enableNpm ? true, version, sha256, patches ? [] } @args:

let

inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;

majorVersion = versions.major version;
minorVersion = versions.minor version;

baseName = if enableNpm then "nodejs" else "nodejs-slim";

sharedLibDeps = { inherit openssl zlib libuv; } // (optionalAttrs (!stdenv.isDarwin) { inherit http-parser; });
useSharedHttpParser = !stdenv.isDarwin && versionOlder "${majorVersion}.${minorVersion}" "11.4";

sharedLibDeps = { inherit openssl zlib libuv; } // (optionalAttrs useSharedHttpParser { inherit http-parser; });

sharedConfigureFlags = concatMap (name: [
"--shared-${name}"
Expand Down Expand Up @@ -103,7 +107,7 @@ in
passthru.updateScript = import ./update.nix {
inherit stdenv writeScript coreutils gnugrep jq curl common-updater-scripts gnupg nix;
inherit (stdenv) lib;
majorVersion = with stdenv.lib; elemAt (splitString "." version) 0;
inherit majorVersion;
};

meta = {
Expand Down
10 changes: 10 additions & 0 deletions pkgs/development/web/nodejs/v11.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ stdenv, callPackage, lib, openssl, enableNpm ? true }:

let
buildNodejs = callPackage ./nodejs.nix { inherit openssl; };
in
buildNodejs {
inherit enableNpm;
version = "11.5.0";
sha256 = "07fdpl8wzkcdd8iyaiwf2ah1rgishk2hrl0g73i8aggwplrl69fx";
}
7 changes: 7 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3875,6 +3875,13 @@ in
enableNpm = false;
openssl = openssl_1_1;
};
nodejs-11_x = callPackage ../development/web/nodejs/v11.nix {
openssl = openssl_1_1;
};
nodejs-slim-11_x = callPackage ../development/web/nodejs/v11.nix {
enableNpm = false;
openssl = openssl_1_1;
};

nodePackages_10_x = callPackage ../development/node-packages/default-v10.nix {
nodejs = pkgs.nodejs-10_x;
Expand Down

0 comments on commit e6a86e6

Please sign in to comment.