Revert Nodejs-8_x deprecation
This was supposed to go through a pull request Revert "nodePackages: Regenerate node packages for nodejs 10 & 12" This reverts commit6a17bdf397. Revert "nodejs-8_x: Drop package" This reverts commite06c97b71d.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, pkgs, fetchFromGitHub, nodejs-10_x, phantomjs2, which }:
|
||||
{ stdenv, pkgs, fetchFromGitHub, nodejs-8_x, phantomjs2, which }:
|
||||
|
||||
let
|
||||
nodePackages = import ./node.nix {
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ which ];
|
||||
buildInputs = [ nodejs-10_x phantomjs-prebuilt ] ++ (stdenv.lib.attrVals [
|
||||
buildInputs = [ nodejs-8_x phantomjs-prebuilt ] ++ (stdenv.lib.attrVals [
|
||||
"blint-^1"
|
||||
"node-static-0.6.0"
|
||||
"rollup-^0.41.0"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-10_x"}:
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-8_x"}:
|
||||
|
||||
let
|
||||
nodeEnv = import ../../../../development/node-packages/node-env.nix {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, pkgs, buildEnv, fetchFromGitHub, makeWrapper
|
||||
, fetchpatch, nodejs-10_x, phantomjs2, runtimeShell }:
|
||||
, fetchpatch, nodejs-8_x, phantomjs2, runtimeShell }:
|
||||
let
|
||||
nodePackages = let
|
||||
# Some packages fail to install with ENOTCACHED due to a mistakenly added
|
||||
@@ -96,7 +96,7 @@ let
|
||||
# has resolved the issue.
|
||||
(import ./js-sequence-diagrams {
|
||||
inherit pkgs;
|
||||
nodejs = nodejs-10_x;
|
||||
nodejs = nodejs-8_x;
|
||||
extraNodePackages = {
|
||||
lodash = nodePackages."lodash-^4.17.4";
|
||||
eve = nodePackages."eve-^0.5.4";
|
||||
@@ -143,7 +143,7 @@ stdenv.mkDerivation rec {
|
||||
inherit name version src;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ nodejs-10_x ];
|
||||
buildInputs = [ nodejs-8_x ];
|
||||
|
||||
NODE_PATH = "${nodeEnv}/lib/node_modules";
|
||||
|
||||
@@ -157,7 +157,7 @@ stdenv.mkDerivation rec {
|
||||
postPatch = ''
|
||||
# due to the `dontNpmInstall` workaround, `node_modules/.bin` isn't created anymore.
|
||||
substituteInPlace package.json \
|
||||
--replace "webpack --config" "${nodejs-10_x}/bin/node ./node_modules/webpack/bin/webpack.js --config"
|
||||
--replace "webpack --config" "${nodejs-8_x}/bin/node ./node_modules/webpack/bin/webpack.js --config"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
@@ -169,7 +169,7 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/bin
|
||||
cat > $out/bin/codimd <<EOF
|
||||
#!${runtimeShell}
|
||||
${nodejs-10_x}/bin/node $out/app.js
|
||||
${nodejs-8_x}/bin/node $out/app.js
|
||||
EOF
|
||||
cp -R {app.js,bin,lib,locales,package.json,public} $out/
|
||||
'';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-10_x"}:
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-8_x"}:
|
||||
|
||||
let
|
||||
nodeEnv = import ../../../development/node-packages/node-env.nix {
|
||||
|
||||
Reference in New Issue
Block a user