nix/pkgs/baserow: update to NodeJS 16.x (latest LTS)

This commit is contained in:
Luke Granger-Brown 2022-05-07 15:23:04 +00:00
parent 759179662a
commit a95b91798d
8 changed files with 1585 additions and 1316 deletions

View file

@ -4,7 +4,7 @@
, stdenv , stdenv
, makeWrapper , makeWrapper
, python3 , python3
, nodejs-12_x , nodejs-16_x
, ossOnly ? true , ossOnly ? true
}: }:
@ -35,7 +35,7 @@ let
inherit (pkgs) system; inherit (pkgs) system;
}; };
nodejs = nodejs-12_x; nodejs = nodejs-16_x;
python = python3.override { python = python3.override {
packageOverrides = self: super: packageOverrides = self: super:
let let

View file

@ -1,12 +1,12 @@
# This file has been generated by node2nix 1.9.0. Do not edit! # This file has been generated by node2nix 1.11.1. Do not edit!
{pkgs ? import <nixpkgs> { {pkgs ? import <nixpkgs> {
inherit system; inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}: }, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-16_x"}:
let let
nodeEnv = import ./node-env.nix { nodeEnv = import ./node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile; inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
inherit pkgs nodejs; inherit pkgs nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null; libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
}; };

View file

@ -1,6 +1,6 @@
# This file originates from node2nix # This file originates from node2nix
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile}: {lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}:
let let
# Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master # Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
@ -40,36 +40,22 @@ let
''; '';
}; };
includeDependencies = {dependencies}: # Common shell logic
lib.optionalString (dependencies != []) installPackage = writeShellScript "install-package" ''
(lib.concatMapStrings (dependency: installPackage() {
'' local packageName=$1 src=$2
# Bundle the dependencies of the package
mkdir -p node_modules
cd node_modules
# Only include dependencies if they don't exist. They may also be bundled in the package. local strippedName
if [ ! -e "${dependency.name}" ]
then
${composePackage dependency}
fi
cd .. local DIR=$PWD
''
) dependencies);
# Recursively composes the dependencies of a package
composePackage = { name, packageName, src, dependencies ? [], ... }@args:
builtins.addErrorContext "while evaluating node package '${packageName}'" ''
DIR=$(pwd)
cd $TMPDIR cd $TMPDIR
unpackFile ${src} unpackFile $src
# Make the base dir in which the target dependency resides first # Make the base dir in which the target dependency resides first
mkdir -p "$(dirname "$DIR/${packageName}")" mkdir -p "$(dirname "$DIR/$packageName")"
if [ -f "${src}" ] if [ -f "$src" ]
then then
# Figure out what directory has been unpacked # Figure out what directory has been unpacked
packageDir="$(find . -maxdepth 1 -type d | tail -1)" packageDir="$(find . -maxdepth 1 -type d | tail -1)"
@ -79,28 +65,53 @@ let
chmod -R u+w "$packageDir" chmod -R u+w "$packageDir"
# Move the extracted tarball into the output folder # Move the extracted tarball into the output folder
mv "$packageDir" "$DIR/${packageName}" mv "$packageDir" "$DIR/$packageName"
elif [ -d "${src}" ] elif [ -d "$src" ]
then then
# Get a stripped name (without hash) of the source directory. # Get a stripped name (without hash) of the source directory.
# On old nixpkgs it's already set internally. # On old nixpkgs it's already set internally.
if [ -z "$strippedName" ] if [ -z "$strippedName" ]
then then
strippedName="$(stripHash ${src})" strippedName="$(stripHash $src)"
fi fi
# Restore write permissions to make building work # Restore write permissions to make building work
chmod -R u+w "$strippedName" chmod -R u+w "$strippedName"
# Move the extracted directory into the output folder # Move the extracted directory into the output folder
mv "$strippedName" "$DIR/${packageName}" mv "$strippedName" "$DIR/$packageName"
fi fi
# Unset the stripped name to not confuse the next unpack step # Change to the package directory to install dependencies
unset strippedName cd "$DIR/$packageName"
}
'';
# Include the dependencies of the package # Bundle the dependencies of the package
cd "$DIR/${packageName}" #
# Only include dependencies if they don't exist. They may also be bundled in the package.
includeDependencies = {dependencies}:
lib.optionalString (dependencies != []) (
''
mkdir -p node_modules
cd node_modules
''
+ (lib.concatMapStrings (dependency:
''
if [ ! -e "${dependency.packageName}" ]; then
${composePackage dependency}
fi
''
) dependencies)
+ ''
cd ..
''
);
# Recursively composes the dependencies of a package
composePackage = { name, packageName, src, dependencies ? [], ... }@args:
builtins.addErrorContext "while evaluating node package '${packageName}'" ''
installPackage "${packageName}" "${src}"
${includeDependencies { inherit dependencies; }} ${includeDependencies { inherit dependencies; }}
cd .. cd ..
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."} ${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
@ -379,12 +390,12 @@ let
buildNodePackage = buildNodePackage =
{ name { name
, packageName , packageName
, version , version ? null
, dependencies ? [] , dependencies ? []
, buildInputs ? [] , buildInputs ? []
, production ? true , production ? true
, npmFlags ? "" , npmFlags ? ""
, dontNpmInstall ? false , dontNpmInstall ? true
, bypassCache ? false , bypassCache ? false
, reconstructLock ? false , reconstructLock ? false
, preRebuild ? "" , preRebuild ? ""
@ -398,7 +409,7 @@ let
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ]; extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ];
in in
stdenv.mkDerivation ({ stdenv.mkDerivation ({
name = "${name}-${version}"; name = "${name}${if version == null then "" else "-${version}"}";
buildInputs = [ tarWrapper python nodejs ] buildInputs = [ tarWrapper python nodejs ]
++ lib.optional (stdenv.isLinux) utillinux ++ lib.optional (stdenv.isLinux) utillinux
++ lib.optional (stdenv.isDarwin) libtool ++ lib.optional (stdenv.isDarwin) libtool
@ -415,6 +426,8 @@ let
passAsFile = [ "compositionScript" "pinpointDependenciesScript" ]; passAsFile = [ "compositionScript" "pinpointDependenciesScript" ];
installPhase = '' installPhase = ''
source ${installPackage}
# Create and enter a root node_modules/ folder # Create and enter a root node_modules/ folder
mkdir -p $out/lib/node_modules mkdir -p $out/lib/node_modules
cd $out/lib/node_modules cd $out/lib/node_modules
@ -428,6 +441,14 @@ let
if [ -d "$out/lib/node_modules/.bin" ] if [ -d "$out/lib/node_modules/.bin" ]
then then
ln -s $out/lib/node_modules/.bin $out/bin ln -s $out/lib/node_modules/.bin $out/bin
# Patch the shebang lines of all the executables
ls $out/bin/* | while read i
do
file="$(readlink -f "$i")"
chmod u+rwx "$file"
patchShebangs "$file"
done
fi fi
# Create symlinks to the deployed manual page folders, if applicable # Create symlinks to the deployed manual page folders, if applicable
@ -458,13 +479,13 @@ let
buildNodeDependencies = buildNodeDependencies =
{ name { name
, packageName , packageName
, version , version ? null
, src , src
, dependencies ? [] , dependencies ? []
, buildInputs ? [] , buildInputs ? []
, production ? true , production ? true
, npmFlags ? "" , npmFlags ? ""
, dontNpmInstall ? false , dontNpmInstall ? true
, bypassCache ? false , bypassCache ? false
, reconstructLock ? false , reconstructLock ? false
, dontStrip ? true , dontStrip ? true
@ -476,7 +497,7 @@ let
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ]; extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ];
in in
stdenv.mkDerivation ({ stdenv.mkDerivation ({
name = "node-dependencies-${name}-${version}"; name = "node-dependencies-${name}${if version == null then "" else "-${version}"}";
buildInputs = [ tarWrapper python nodejs ] buildInputs = [ tarWrapper python nodejs ]
++ lib.optional (stdenv.isLinux) utillinux ++ lib.optional (stdenv.isLinux) utillinux
@ -492,6 +513,8 @@ let
passAsFile = [ "includeScript" "pinpointDependenciesScript" ]; passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
installPhase = '' installPhase = ''
source ${installPackage}
mkdir -p $out/${packageName} mkdir -p $out/${packageName}
cd $out/${packageName} cd $out/${packageName}
@ -504,6 +527,7 @@ let
if [ -f ${src}/package-lock.json ] if [ -f ${src}/package-lock.json ]
then then
cp ${src}/package-lock.json . cp ${src}/package-lock.json .
chmod 644 package-lock.json
fi fi
''} ''}
@ -526,13 +550,13 @@ let
buildNodeShell = buildNodeShell =
{ name { name
, packageName , packageName
, version , version ? null
, src , src
, dependencies ? [] , dependencies ? []
, buildInputs ? [] , buildInputs ? []
, production ? true , production ? true
, npmFlags ? "" , npmFlags ? ""
, dontNpmInstall ? false , dontNpmInstall ? true
, bypassCache ? false , bypassCache ? false
, reconstructLock ? false , reconstructLock ? false
, dontStrip ? true , dontStrip ? true
@ -542,9 +566,10 @@ let
let let
nodeDependencies = buildNodeDependencies args; nodeDependencies = buildNodeDependencies args;
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "unpackPhase" "buildPhase" ];
in in
stdenv.mkDerivation { stdenv.mkDerivation ({
name = "node-shell-${name}-${version}"; name = "node-shell-${name}${if version == null then "" else "-${version}"}";
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs; buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
buildCommand = '' buildCommand = ''
@ -563,7 +588,7 @@ let
export NODE_PATH=${nodeDependencies}/lib/node_modules export NODE_PATH=${nodeDependencies}/lib/node_modules
export PATH="${nodeDependencies}/bin:$PATH" export PATH="${nodeDependencies}/bin:$PATH"
''; '';
}; } // extraArgs);
in in
{ {
buildNodeSourceDist = lib.makeOverridable buildNodeSourceDist; buildNodeSourceDist = lib.makeOverridable buildNodeSourceDist;

View file

@ -1,16 +1,16 @@
# This file has been generated by node2nix 1.9.0. Do not edit! # This file has been generated by node2nix 1.11.1. Do not edit!
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? []}: {nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? []}:
let let
sources = { sources = {
"@babel/runtime-7.16.5" = { "@babel/runtime-7.17.9" = {
name = "_at_babel_slash_runtime"; name = "_at_babel_slash_runtime";
packageName = "@babel/runtime"; packageName = "@babel/runtime";
version = "7.16.5"; version = "7.17.9";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.5.tgz"; url = "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.9.tgz";
sha512 = "TXWihFIS3Pyv5hzR7j6ihmeLkZfrXGxAr5UfSl8CHf+6q/wpiYDkUau0czckpYG8QmnCIuPpdLtuA9VmuGGyMA=="; sha512 = "lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==";
}; };
}; };
"abbrev-1.1.1" = { "abbrev-1.1.1" = {
@ -121,22 +121,22 @@ let
sha512 = "g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw=="; sha512 = "g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw==";
}; };
}; };
"cheerio-select-1.5.0" = { "cheerio-select-1.6.0" = {
name = "cheerio-select"; name = "cheerio-select";
packageName = "cheerio-select"; packageName = "cheerio-select";
version = "1.5.0"; version = "1.6.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.5.0.tgz"; url = "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.6.0.tgz";
sha512 = "qocaHPv5ypefh6YNxvnbABM07KMxExbtbfuJoIie3iZXX1ERwYmJcIiRrr9H05ucQP1k28dav8rpdDgjQd8drg=="; sha512 = "eq0GdBvxVFbqWgmCm7M3XGs1I8oLy/nExUnh6oLqmBditPO9AqQJrkslDpMun/hZ0yyTs8L0m85OHp4ho6Qm9g==";
}; };
}; };
"chokidar-3.5.2" = { "chokidar-3.5.3" = {
name = "chokidar"; name = "chokidar";
packageName = "chokidar"; packageName = "chokidar";
version = "3.5.2"; version = "3.5.3";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz"; url = "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz";
sha512 = "ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ=="; sha512 = "Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==";
}; };
}; };
"clean-css-4.2.4" = { "clean-css-4.2.4" = {
@ -211,22 +211,22 @@ let
sha512 = "qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ=="; sha512 = "qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==";
}; };
}; };
"css-select-4.2.0" = { "css-select-4.3.0" = {
name = "css-select"; name = "css-select";
packageName = "css-select"; packageName = "css-select";
version = "4.2.0"; version = "4.3.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/css-select/-/css-select-4.2.0.tgz"; url = "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz";
sha512 = "6YVG6hsH9yIb/si3Th/is8Pex7qnVHO6t7q7U6TIUnkQASGbS8tnUDBftnPynLNnuUl/r2+PTd0ekiiq7R0zJw=="; sha512 = "wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==";
}; };
}; };
"css-what-5.1.0" = { "css-what-6.1.0" = {
name = "css-what"; name = "css-what";
packageName = "css-what"; packageName = "css-what";
version = "5.1.0"; version = "6.1.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz"; url = "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz";
sha512 = "arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw=="; sha512 = "HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==";
}; };
}; };
"detect-node-2.0.4" = { "detect-node-2.0.4" = {
@ -238,22 +238,22 @@ let
sha512 = "ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw=="; sha512 = "ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==";
}; };
}; };
"dom-serializer-1.3.2" = { "dom-serializer-1.4.1" = {
name = "dom-serializer"; name = "dom-serializer";
packageName = "dom-serializer"; packageName = "dom-serializer";
version = "1.3.2"; version = "1.4.1";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz"; url = "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz";
sha512 = "5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig=="; sha512 = "VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==";
}; };
}; };
"domelementtype-2.2.0" = { "domelementtype-2.3.0" = {
name = "domelementtype"; name = "domelementtype";
packageName = "domelementtype"; packageName = "domelementtype";
version = "2.2.0"; version = "2.3.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz"; url = "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz";
sha512 = "DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A=="; sha512 = "OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==";
}; };
}; };
"domhandler-3.3.0" = { "domhandler-3.3.0" = {
@ -265,13 +265,13 @@ let
sha512 = "J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA=="; sha512 = "J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==";
}; };
}; };
"domhandler-4.3.0" = { "domhandler-4.3.1" = {
name = "domhandler"; name = "domhandler";
packageName = "domhandler"; packageName = "domhandler";
version = "4.3.0"; version = "4.3.1";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz"; url = "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz";
sha512 = "fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g=="; sha512 = "GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==";
}; };
}; };
"domutils-2.8.0" = { "domutils-2.8.0" = {
@ -490,13 +490,13 @@ let
sha512 = "41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="; sha512 = "41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==";
}; };
}; };
"js-beautify-1.14.0" = { "js-beautify-1.14.3" = {
name = "js-beautify"; name = "js-beautify";
packageName = "js-beautify"; packageName = "js-beautify";
version = "1.14.0"; version = "1.14.3";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.0.tgz"; url = "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.3.tgz";
sha512 = "yuck9KirNSCAwyNJbqW+BxJqJ0NLJ4PwBUzQQACl5O3qHMBXVkXb/rD0ilh/Lat/tn88zSZ+CAHOlk0DsY7GuQ=="; sha512 = "f1ra8PHtOEu/70EBnmiUlV8nJePS58y9qKjl4JHfYWlFH6bo7ogZBz//FAZp7jDuXtYnGYKymZPlrg2I/9Zo4g==";
}; };
}; };
"juice-7.0.0" = { "juice-7.0.0" = {
@ -553,292 +553,292 @@ let
sha512 = "USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg=="; sha512 = "USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==";
}; };
}; };
"minimatch-3.0.4" = { "minimatch-3.1.2" = {
name = "minimatch"; name = "minimatch";
packageName = "minimatch"; packageName = "minimatch";
version = "3.0.4"; version = "3.1.2";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz"; url = "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz";
sha512 = "yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA=="; sha512 = "J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==";
}; };
}; };
"mjml-accordion-4.11.0" = { "mjml-accordion-4.12.0" = {
name = "mjml-accordion"; name = "mjml-accordion";
packageName = "mjml-accordion"; packageName = "mjml-accordion";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-accordion/-/mjml-accordion-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-accordion/-/mjml-accordion-4.12.0.tgz";
sha512 = "u6cPMl4z8JeRIq0sGHWfzwE5SqwBhSPHJ8wElhfU7CK6gAoUTz4BIL/03da2whXk0S34n5CSU453JpuWV+3bQQ=="; sha512 = "vqBk4NhXN+w6F3c5vnLxkvgneREpkwTzZpbxtMzpNqkUW2yei0oSQ26j/wLgXYTaX+4Czp+oVr0cnNxjyCZHjA==";
}; };
}; };
"mjml-body-4.11.0" = { "mjml-body-4.12.0" = {
name = "mjml-body"; name = "mjml-body";
packageName = "mjml-body"; packageName = "mjml-body";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-body/-/mjml-body-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-body/-/mjml-body-4.12.0.tgz";
sha512 = "+SQXOjKOr9IMblmslrUbv+ahF/SkqT7mAuix1P/F9ev3aS+WN7Gy/lyJLaq1zhSQCmzrBDovHez3bJ7NGToU0g=="; sha512 = "IQBAHhdRKsNUXat+oxvRTjVJ1qzTRkNjFe/mtD/Pbn9olUnQmV+RKxnkqRZf7QtiTxVIOGC4kU9VLPjNymsFXQ==";
}; };
}; };
"mjml-button-4.11.0" = { "mjml-button-4.12.0" = {
name = "mjml-button"; name = "mjml-button";
packageName = "mjml-button"; packageName = "mjml-button";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-button/-/mjml-button-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-button/-/mjml-button-4.12.0.tgz";
sha512 = "v/MwA2Kq2MlHJwrajdAqUihjAQivD8FpkpOAcqdgqI1ffaEDzd6FGFt5qOtVD9BncChQ4a51haOnPd+kbBLlCA=="; sha512 = "XJfLP+mHvCr6Ky16ooYz5+8ODkf10+ATyvENCKyrof+rietr5WxN2FxWCZA9Orq20OE74/hvaOeZZdkxwtsXig==";
}; };
}; };
"mjml-carousel-4.11.0" = { "mjml-carousel-4.12.0" = {
name = "mjml-carousel"; name = "mjml-carousel";
packageName = "mjml-carousel"; packageName = "mjml-carousel";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-carousel/-/mjml-carousel-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-carousel/-/mjml-carousel-4.12.0.tgz";
sha512 = "/owKKSg3DNes1rauPPhlGCFdZ4zzoxdztPLGOm9TSjkbL5q2cN9NMfzNdTYLnnVG5G5XWX0THjDeeq+bGnHw8w=="; sha512 = "vQ5Aqvix9mbAE0GspxIDpKK4dVMRuKFO3qV6N/CkrIAOe4+2CKV4AMn2fWUvQEx6hA6CGxayeLkI7E0hNOWcZA==";
}; };
}; };
"mjml-cli-4.11.0" = { "mjml-cli-4.12.0" = {
name = "mjml-cli"; name = "mjml-cli";
packageName = "mjml-cli"; packageName = "mjml-cli";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-cli/-/mjml-cli-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-cli/-/mjml-cli-4.12.0.tgz";
sha512 = "jgkxNY+sY+CwiUlO6VX8cwVjlLBXIzE7X4fXkQ2RjXpbAvsN8uDafST8oL8PDlxNIjOwK6YJySzZSLXSKTF5Zg=="; sha512 = "//Y4XsN6aFgpZtDbQZRu4qe+CQzGWV3i5K3rC1dwPcdtpDMsXBPKiwIZFrQxpRVBwxs0hU4ZBQOMtvYZkoicdQ==";
}; };
}; };
"mjml-column-4.11.0" = { "mjml-column-4.12.0" = {
name = "mjml-column"; name = "mjml-column";
packageName = "mjml-column"; packageName = "mjml-column";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-column/-/mjml-column-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-column/-/mjml-column-4.12.0.tgz";
sha512 = "yuupexywYXuXTvxxGLPZw6S/D6fz4b41ZarOkEPW8Pbj7FkfnBTO3QokAS5KapJ9x6sIAVs+cCgUul87dwOBzg=="; sha512 = "Ub/7ov2B1T2jfSpxvF61o3UCU4gGDFUqIelr7ghuazLc2KvTwdHYeR8mWt8l8RBM6zZiWjkYEFMP22ty7WXztg==";
}; };
}; };
"mjml-core-4.11.0" = { "mjml-core-4.12.0" = {
name = "mjml-core"; name = "mjml-core";
packageName = "mjml-core"; packageName = "mjml-core";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-core/-/mjml-core-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-core/-/mjml-core-4.12.0.tgz";
sha512 = "UTI1exu9/0lOF40aacAzC9A7RrJPcay7WYurYsb+X2LbDyfBlSx5ZCtuUTHwLfIz3PL6rSg8yrZ3KtlmhQJ/kQ=="; sha512 = "B3gUkV3kFN1IlzIV3GnpWBmE21XHH5ARyydMxacR75iC53PvJ9c50hr6DWLGdrrDCC6Fdud8jTmgD9dnWPmJhQ==";
}; };
}; };
"mjml-divider-4.11.0" = { "mjml-divider-4.12.0" = {
name = "mjml-divider"; name = "mjml-divider";
packageName = "mjml-divider"; packageName = "mjml-divider";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-divider/-/mjml-divider-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-divider/-/mjml-divider-4.12.0.tgz";
sha512 = "jS8Sa7uuFTmThtrcV3FICtbqmA0yJplldaNJwW5upiq7MEXuSwLNzjNeodaTpsVWevf/stE3C4lBA3+V4ascMg=="; sha512 = "L87iqrhVS+PnUInYbXK4lcTQcHfWMTL7ZqDL9XEMBywzX8cCfviLNMbqmLCO2HD8nMPVMRbcE32H04T6LyZ2qw==";
}; };
}; };
"mjml-group-4.11.0" = { "mjml-group-4.12.0" = {
name = "mjml-group"; name = "mjml-group";
packageName = "mjml-group"; packageName = "mjml-group";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-group/-/mjml-group-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-group/-/mjml-group-4.12.0.tgz";
sha512 = "Yv1ZcPNk4bxOK/eol6bjJvRJBaOCzVY88QO8IfCQifAZuiXhatxwsuwaRKNcTi4cB+IHwl4JguZHgsFRi/Gf/g=="; sha512 = "Rl7Iydd7M2SnbH1ItIi07hYY+FrEai5c6kYMKbcFWAuNupCuvUThuhx1AphMPCZFMLbbPSKNWMarBkWhepS7cw==";
}; };
}; };
"mjml-head-4.11.0" = { "mjml-head-4.12.0" = {
name = "mjml-head"; name = "mjml-head";
packageName = "mjml-head"; packageName = "mjml-head";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head/-/mjml-head-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head/-/mjml-head-4.12.0.tgz";
sha512 = "KNaSsOlf5FNwHyZQD6YNZN2Eo/o7n+mZISFLyp9MvNFaT3NKIRJDaInD1WjN+w2aHdXAw4sDV3+/9/EET2bh1A=="; sha512 = "LcI4ykOB6nMV5W//tF9S1unlXxexfNZUnnyZ2OOzP1V7J5poLXdKXqB8XATN2YGGTsDZ5Q/5V1KO+NnjpW7zSw==";
}; };
}; };
"mjml-head-attributes-4.11.0" = { "mjml-head-attributes-4.12.0" = {
name = "mjml-head-attributes"; name = "mjml-head-attributes";
packageName = "mjml-head-attributes"; packageName = "mjml-head-attributes";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head-attributes/-/mjml-head-attributes-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head-attributes/-/mjml-head-attributes-4.12.0.tgz";
sha512 = "azeDRLGH7cU6PoXLd08E/H3UDHFsblBTcme++OWrj5B21vaFguOBySO2eWFTyWLthy+xst8FftWV46f8BWvciw=="; sha512 = "tRwKUzIrtcw1FGy8Xpy4vrFo0u2daZgqx3X0cM5WWrGFcKe7ZdjNEAkU/3w+WsFjeMcb0fHdKvd+sxBjPJ6fpA==";
}; };
}; };
"mjml-head-breakpoint-4.11.0" = { "mjml-head-breakpoint-4.12.0" = {
name = "mjml-head-breakpoint"; name = "mjml-head-breakpoint";
packageName = "mjml-head-breakpoint"; packageName = "mjml-head-breakpoint";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head-breakpoint/-/mjml-head-breakpoint-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head-breakpoint/-/mjml-head-breakpoint-4.12.0.tgz";
sha512 = "OQ/WpXHagGoiUmBjoMHuxdigyLQrHNL6+Op0LHO87vN1GH2ap4YLcSSegIsThQLi/I7V4/JFZbzS5jV4xd4SMg=="; sha512 = "BVVbvAIcIu49P1EJkEPPIY8Gu4GleyzpkdddqD3ihAPn3Pz07SEsFlHvI35eCszuaJeeMbSSxLrsF4m+aQQlvw==";
}; };
}; };
"mjml-head-font-4.11.0" = { "mjml-head-font-4.12.0" = {
name = "mjml-head-font"; name = "mjml-head-font";
packageName = "mjml-head-font"; packageName = "mjml-head-font";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head-font/-/mjml-head-font-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head-font/-/mjml-head-font-4.12.0.tgz";
sha512 = "AJQ9lhNzNr0hwPjUID76LNna3U8ycmFH1lyipZOWHTivOVGkSYs8PaboxORfU/QAEDKo/p8LafBAoDPEdSigxA=="; sha512 = "ja5sWbGOIr1gF/7IIPzrgOlWYiKk57BC8JWYRANV7CxNKa635sd6aBJHbzXv1A6Ph+zH5KtE0MSQCK8n49BIsw==";
}; };
}; };
"mjml-head-html-attributes-4.11.0" = { "mjml-head-html-attributes-4.12.0" = {
name = "mjml-head-html-attributes"; name = "mjml-head-html-attributes";
packageName = "mjml-head-html-attributes"; packageName = "mjml-head-html-attributes";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head-html-attributes/-/mjml-head-html-attributes-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head-html-attributes/-/mjml-head-html-attributes-4.12.0.tgz";
sha512 = "Gew9EAuqFu9QR3g+8FyE9WHNMszx1ejzo8dRDIuTaBCDEpaIaPVO7G5rGhT7ADqZufeYtRhBXfXjcShPD/a30g=="; sha512 = "XJesJuW9uzlNN5w/S7t5ZquSVDay7BehOKmIZKMwKn1y0SJBXiakcwt9M9hhF0HB189Bew0gpGt3m7QYvTez8g==";
}; };
}; };
"mjml-head-preview-4.11.0" = { "mjml-head-preview-4.12.0" = {
name = "mjml-head-preview"; name = "mjml-head-preview";
packageName = "mjml-head-preview"; packageName = "mjml-head-preview";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head-preview/-/mjml-head-preview-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head-preview/-/mjml-head-preview-4.12.0.tgz";
sha512 = "f79+OtwC8CYcQpglGNfm3s74qVecdwLlDm9DD/LJvZwIdaALeIfZF36nz6+rtCLMhND+wxgqxqkmbbuS6AbO+A=="; sha512 = "pr02ZkxwU6/LWhrL3xP/hLrUXx27I1FnfgaYjgvMjh6pMURuy7W+W8BrNJKeyXZo685b2A5lNFDJV7rCJ6HrEQ==";
}; };
}; };
"mjml-head-style-4.11.0" = { "mjml-head-style-4.12.0" = {
name = "mjml-head-style"; name = "mjml-head-style";
packageName = "mjml-head-style"; packageName = "mjml-head-style";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head-style/-/mjml-head-style-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head-style/-/mjml-head-style-4.12.0.tgz";
sha512 = "jw0r9Ld56SkJmDUBx+27xOH+oY2O06FBcKSJIkZLJ/sefbjgJa2/ti2eso/LeGgrmTw8zge7g1pp0Fl+kPjsGA=="; sha512 = "64IVdJ2Xl000SrwLt4cebl+MiZcino/ywMkuLQ/c48XeR6pkvbjXYAInWsdlMG1y041n1bOZICNnQQc4xhNJrw==";
}; };
}; };
"mjml-head-title-4.11.0" = { "mjml-head-title-4.12.0" = {
name = "mjml-head-title"; name = "mjml-head-title";
packageName = "mjml-head-title"; packageName = "mjml-head-title";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-head-title/-/mjml-head-title-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-head-title/-/mjml-head-title-4.12.0.tgz";
sha512 = "mjYsKoE9+5LI8V0mK9SAKVKspF19TVius2q5I1FXLRdBmt4Ei87CdrSui+iixGrug0Lwt4P2W3+mK8kVGNnJAQ=="; sha512 = "c7thJUmNLIdVy1ftLbYUjchHwrIfAb9SHdbuVQHdtQz45a3Ni2nie4AWxF/srn90k8q/uEKtQq1taOa4f71Zug==";
}; };
}; };
"mjml-hero-4.11.0" = { "mjml-hero-4.12.0" = {
name = "mjml-hero"; name = "mjml-hero";
packageName = "mjml-hero"; packageName = "mjml-hero";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-hero/-/mjml-hero-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-hero/-/mjml-hero-4.12.0.tgz";
sha512 = "tZDCGjQrDICwbsDnLvfVEsQ5+GdrIozB3oO3NxC6m2Eq04VKNBkIqq+QvJyouOxzJ3CZgO2B4rylzxc6YXuHsw=="; sha512 = "j87DgSAyLzMMuNtVqR1okkI/orKnvZoR7i+RsA1yueNql9dZtnw3Ezy8cas8MJaAoGOmqIy9AqGRJIr82w4mxQ==";
}; };
}; };
"mjml-image-4.11.0" = { "mjml-image-4.12.0" = {
name = "mjml-image"; name = "mjml-image";
packageName = "mjml-image"; packageName = "mjml-image";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-image/-/mjml-image-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-image/-/mjml-image-4.12.0.tgz";
sha512 = "qjvKS/x2arDNgKppPecmg69VyXdQbb1CNVqPwowJLyfjioTw4hxQ93suWoBKJJojRjkwauj9IRMC8TR9ffn0HQ=="; sha512 = "P77M+PLLNn7QvGhL8sx+6yzkQbEMxIQO3yxqUC+x8Ie8kXS8phSNGcqx8qfhdN7p7sQ3CZdOIZSXkG7RRAF94w==";
}; };
}; };
"mjml-migrate-4.11.0" = { "mjml-migrate-4.12.0" = {
name = "mjml-migrate"; name = "mjml-migrate";
packageName = "mjml-migrate"; packageName = "mjml-migrate";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-migrate/-/mjml-migrate-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-migrate/-/mjml-migrate-4.12.0.tgz";
sha512 = "Y+9U4w9LwlTkfTkHX9GdalIQDO4JQxboG4PM8g7vRKNhKSZDZH8QSr0SNhX0+fMQmjb9b0nztWbMVVvNZfMoPQ=="; sha512 = "KDdPkuOzL9CAekY0CslM0Yqiomk4TubNMszw6UFfylp5xRA3CfBo0HdGcnewHBkZ8+isjPlzDWf3n+NkU11OiA==";
}; };
}; };
"mjml-navbar-4.11.0" = { "mjml-navbar-4.12.0" = {
name = "mjml-navbar"; name = "mjml-navbar";
packageName = "mjml-navbar"; packageName = "mjml-navbar";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-navbar/-/mjml-navbar-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-navbar/-/mjml-navbar-4.12.0.tgz";
sha512 = "FEd+8RD6ra8652jXdMbhfhzT1YY8TA30c34qjJ+ULlFgvLH4GNnYRIOHp/Mgd/L38Qf3bhK/rK9ELBidJ36dLQ=="; sha512 = "TWKV5lFgwUvRbG+FNz6Uo7mGPJRU/BK1v0BeQr1e5Ykft4052iYIuv2XNwRkeoORmLT+7AN8FbkP+TVBpflbWw==";
}; };
}; };
"mjml-parser-xml-4.11.0" = { "mjml-parser-xml-4.12.0" = {
name = "mjml-parser-xml"; name = "mjml-parser-xml";
packageName = "mjml-parser-xml"; packageName = "mjml-parser-xml";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-parser-xml/-/mjml-parser-xml-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-parser-xml/-/mjml-parser-xml-4.12.0.tgz";
sha512 = "3toQ9UKyfzXWXJ7PlTExBjzGXAzJNORv39sorPv5sG2KJsvPC6NE+e+/1GyqYFhk4JffHoDfd4mQ6w050qYATQ=="; sha512 = "cmCcvoiirH0kuCglGAjwBVfDrlnqS3e83uBwPN6wDN6IfxSgsPT6IV0vRfcJERsr2ThpFjvoSq4GmYi9oCUSMw==";
}; };
}; };
"mjml-preset-core-4.11.0" = { "mjml-preset-core-4.12.0" = {
name = "mjml-preset-core"; name = "mjml-preset-core";
packageName = "mjml-preset-core"; packageName = "mjml-preset-core";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-preset-core/-/mjml-preset-core-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-preset-core/-/mjml-preset-core-4.12.0.tgz";
sha512 = "HU9ZFzS+A7Dx0B/EbnqYjdcIQQuxpOVRfFReQBlllZYwjWaRUjDIeIjF+cdnCb9QveuSNo4msIG00h/MKPYiGQ=="; sha512 = "zoiCKcl/bK43ltr2J8dY9Qg5fcB3TbhaWcTG84oGYWdii5WEkKTXj5hpP1ss1XqdOGMNLij/HVwmli+xQCo6FQ==";
}; };
}; };
"mjml-raw-4.11.0" = { "mjml-raw-4.12.0" = {
name = "mjml-raw"; name = "mjml-raw";
packageName = "mjml-raw"; packageName = "mjml-raw";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-raw/-/mjml-raw-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-raw/-/mjml-raw-4.12.0.tgz";
sha512 = "DyUwC/JrE8tF7v9XaKQpQ/yAg5tT2uAWSDI6J5x3t3TNFJmRPd3iorSu8v6t1s3OiekuxfagsDDPLFuzpGwZSw=="; sha512 = "vQUmrEZEgu0DCca7tiPdQ/vf8GM5QyeaabbLd1rX3XCt5Mid47LCdszmVcrk1WxqNuExIw1fNyEGCCDeP2qCJg==";
}; };
}; };
"mjml-section-4.11.0" = { "mjml-section-4.12.0" = {
name = "mjml-section"; name = "mjml-section";
packageName = "mjml-section"; packageName = "mjml-section";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-section/-/mjml-section-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-section/-/mjml-section-4.12.0.tgz";
sha512 = "OpinxE019Z1symrEFku3UddsvSql2aolcAiOThFuAAXz3+tUuooofGMy/XyyMOuOnktOx/5PMcVFsV84/Jye/g=="; sha512 = "5BdHrAghS/XJ40t3qtLHpY3rIVuBnJXv8dGm8U+oMVAzw3L4ySk5WI+FulRkchdPFCKpeXQZjXZaX0C7pmNaIw==";
}; };
}; };
"mjml-social-4.11.0" = { "mjml-social-4.12.0" = {
name = "mjml-social"; name = "mjml-social";
packageName = "mjml-social"; packageName = "mjml-social";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-social/-/mjml-social-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-social/-/mjml-social-4.12.0.tgz";
sha512 = "tM5njGtang0VRWt+XCuMTnZP2IJehUd+kdsC7CnMKQhYI2X4vzEaOBLgXRWvhcT4pSBzEJkXB9sQ+y7JmLO10g=="; sha512 = "eTsqJoKP65Imawh+WEX2dv4N34ItUmvIbsCeSQPhC/NG6klxDjzg5oDA1F2tZk+CPIuXVmJiauQ5/vPHLzUiVw==";
}; };
}; };
"mjml-spacer-4.11.0" = { "mjml-spacer-4.12.0" = {
name = "mjml-spacer"; name = "mjml-spacer";
packageName = "mjml-spacer"; packageName = "mjml-spacer";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-spacer/-/mjml-spacer-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-spacer/-/mjml-spacer-4.12.0.tgz";
sha512 = "9s6PjFgznKEFgFZCSa4vTYVDQ6kRH5ucMHGraoHS4VMZLA8QIaVakHd4Sl0n+SGWCqair4xZ3vYYMhOBKIXmMw=="; sha512 = "YB+VCixcuWXDzICrGLFw7PJDkL166e4OG8IUUB2yhvd5VHtFFBc0iRksaEAumOL1r6MnXVCRq4Wcmxlzj7zOfQ==";
}; };
}; };
"mjml-table-4.11.0" = { "mjml-table-4.12.0" = {
name = "mjml-table"; name = "mjml-table";
packageName = "mjml-table"; packageName = "mjml-table";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-table/-/mjml-table-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-table/-/mjml-table-4.12.0.tgz";
sha512 = "ccniRz1MoDqKS6zoNM59xi81M7zy/tkvd/6weyH9XAZiU7ATgOxoBuIMy+d0uSTlKPWNwoi2FqR5YSedxT2YPw=="; sha512 = "IuLvyiJOsM6RgobuIfZuM36fJcoH8pK/A4awCLTEme0HCxEkkjzDkl4RBMK/KX53Cpor0U6oR6RlQfZcducpLg==";
}; };
}; };
"mjml-text-4.11.0" = { "mjml-text-4.12.0" = {
name = "mjml-text"; name = "mjml-text";
packageName = "mjml-text"; packageName = "mjml-text";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-text/-/mjml-text-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-text/-/mjml-text-4.12.0.tgz";
sha512 = "xrY5+uepxUg+q5KKuKX2s9KQnnlsMN5aoCt0JSbjt4H9ZwBpqXPD4Z2uJ8eZS33FvnXzUYPNVdKralvXnrsXKA=="; sha512 = "AFcXiQBC48ZfKKgAdU0NRS2nqftc8zLGxBtPwHNgFkuh5Lf2rWgPK6JRubNi7qhb8Sd7M8stU+LIRA5sxM1nRQ==";
}; };
}; };
"mjml-validator-4.11.0" = { "mjml-validator-4.12.0" = {
name = "mjml-validator"; name = "mjml-validator";
packageName = "mjml-validator"; packageName = "mjml-validator";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-validator/-/mjml-validator-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-validator/-/mjml-validator-4.12.0.tgz";
sha512 = "oDL9tHcL4PaCZMwH6T/lLpS7LV9cm9lIwnzJy+y5/S81MGMV6kPr6xXHgS0A01G7sseg6+rHgqBnUgzUob4Ilg=="; sha512 = "EmOScfcJJ4LdIyHnE+K4FdkryQ+c6QRV7qp+zlunAHE5AUPaBS0OrHPHuNo1sOu7g1tc+bVl7eHR4FIb0Wkzwg==";
}; };
}; };
"mjml-wrapper-4.11.0" = { "mjml-wrapper-4.12.0" = {
name = "mjml-wrapper"; name = "mjml-wrapper";
packageName = "mjml-wrapper"; packageName = "mjml-wrapper";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml-wrapper/-/mjml-wrapper-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml-wrapper/-/mjml-wrapper-4.12.0.tgz";
sha512 = "WXGKxS+DlYalx5ofwq3bttj26BLEcaueeQ+0BcffXIELojUzd0+xTyX09v0QemUCBmKpHB2QaKMGhzYuSkupyg=="; sha512 = "u0pq+A9QBLwpeF/hdv2uWZIv3Qp4wwf+CMaHZsUpb3YfOJD/6YKwLvkeA7ngE+YxwwzgtgjmIEs4eDae1evlgQ==";
}; };
}; };
"no-case-2.3.2" = { "no-case-2.3.2" = {
@ -850,13 +850,13 @@ let
sha512 = "rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ=="; sha512 = "rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==";
}; };
}; };
"node-fetch-2.6.6" = { "node-fetch-2.6.7" = {
name = "node-fetch"; name = "node-fetch";
packageName = "node-fetch"; packageName = "node-fetch";
version = "2.6.6"; version = "2.6.7";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz"; url = "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz";
sha512 = "Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA=="; sha512 = "ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==";
}; };
}; };
"nopt-5.0.0" = { "nopt-5.0.0" = {
@ -931,13 +931,13 @@ let
sha1 = "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"; sha1 = "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f";
}; };
}; };
"picomatch-2.3.0" = { "picomatch-2.3.1" = {
name = "picomatch"; name = "picomatch";
packageName = "picomatch"; packageName = "picomatch";
version = "2.3.0"; version = "2.3.1";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz"; url = "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz";
sha512 = "lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw=="; sha512 = "JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==";
}; };
}; };
"proto-list-1.2.4" = { "proto-list-1.2.4" = {
@ -1066,22 +1066,22 @@ let
sha1 = "8184fd347dac9cdc185992f3a6622e14b9d9ab6a"; sha1 = "8184fd347dac9cdc185992f3a6622e14b9d9ab6a";
}; };
}; };
"tslib-2.3.1" = { "tslib-2.4.0" = {
name = "tslib"; name = "tslib";
packageName = "tslib"; packageName = "tslib";
version = "2.3.1"; version = "2.4.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz"; url = "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz";
sha512 = "77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="; sha512 = "d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==";
}; };
}; };
"uglify-js-3.14.5" = { "uglify-js-3.15.4" = {
name = "uglify-js"; name = "uglify-js";
packageName = "uglify-js"; packageName = "uglify-js";
version = "3.14.5"; version = "3.15.4";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.5.tgz"; url = "https://registry.npmjs.org/uglify-js/-/uglify-js-3.15.4.tgz";
sha512 = "qZukoSxOG0urUTvjc2ERMTcAy+BiFh3weWAkeurLwjrCba73poHmG3E36XEjd/JGukMzwTL7uCxZiAexj8ppvQ=="; sha512 = "vMOPGDuvXecPs34V74qDKk4iJ/SN4vL3Ow/23ixafENYvtrNvtbcgUeugTcUGRGsOF/5fU8/NYSL5Hyb3l1OJA==";
}; };
}; };
"upper-case-1.1.3" = { "upper-case-1.1.3" = {
@ -1189,13 +1189,13 @@ in
mjml = nodeEnv.buildNodePackage { mjml = nodeEnv.buildNodePackage {
name = "mjml"; name = "mjml";
packageName = "mjml"; packageName = "mjml";
version = "4.11.0"; version = "4.12.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/mjml/-/mjml-4.11.0.tgz"; url = "https://registry.npmjs.org/mjml/-/mjml-4.12.0.tgz";
sha512 = "kYuCAds/8F7m7xNEs3TFkrc0jxnNYIkexQIUNByPLQJFoFRltpgXLSdoyreGAniQtDGITPE+p8FIocLUBKsOHg=="; sha512 = "uWDu1pPQVyoX4iKIrM02J6qOBN6PC1rSMP64DKi2qGU4dpOztVgvTBh6JttIbINV4ZiALtpeGu+jeEUqp2ROXA==";
}; };
dependencies = [ dependencies = [
sources."@babel/runtime-7.16.5" sources."@babel/runtime-7.17.9"
sources."abbrev-1.1.1" sources."abbrev-1.1.1"
sources."ansi-colors-4.1.1" sources."ansi-colors-4.1.1"
sources."ansi-regex-5.0.1" sources."ansi-regex-5.0.1"
@ -1209,16 +1209,16 @@ in
sources."camel-case-3.0.0" sources."camel-case-3.0.0"
(sources."cheerio-1.0.0-rc.10" // { (sources."cheerio-1.0.0-rc.10" // {
dependencies = [ dependencies = [
sources."domhandler-4.3.0" sources."domhandler-4.3.1"
sources."htmlparser2-6.1.0" sources."htmlparser2-6.1.0"
]; ];
}) })
(sources."cheerio-select-1.5.0" // { (sources."cheerio-select-1.6.0" // {
dependencies = [ dependencies = [
sources."domhandler-4.3.0" sources."domhandler-4.3.1"
]; ];
}) })
sources."chokidar-3.5.2" sources."chokidar-3.5.3"
sources."clean-css-4.2.4" sources."clean-css-4.2.4"
sources."cliui-7.0.4" sources."cliui-7.0.4"
sources."color-convert-2.0.1" sources."color-convert-2.0.1"
@ -1226,23 +1226,23 @@ in
sources."commander-2.20.3" sources."commander-2.20.3"
sources."concat-map-0.0.1" sources."concat-map-0.0.1"
sources."config-chain-1.1.13" sources."config-chain-1.1.13"
(sources."css-select-4.2.0" // { (sources."css-select-4.3.0" // {
dependencies = [ dependencies = [
sources."domhandler-4.3.0" sources."domhandler-4.3.1"
]; ];
}) })
sources."css-what-5.1.0" sources."css-what-6.1.0"
sources."detect-node-2.0.4" sources."detect-node-2.0.4"
(sources."dom-serializer-1.3.2" // { (sources."dom-serializer-1.4.1" // {
dependencies = [ dependencies = [
sources."domhandler-4.3.0" sources."domhandler-4.3.1"
]; ];
}) })
sources."domelementtype-2.2.0" sources."domelementtype-2.3.0"
sources."domhandler-3.3.0" sources."domhandler-3.3.0"
(sources."domutils-2.8.0" // { (sources."domutils-2.8.0" // {
dependencies = [ dependencies = [
sources."domhandler-4.3.0" sources."domhandler-4.3.1"
]; ];
}) })
sources."editorconfig-0.15.3" sources."editorconfig-0.15.3"
@ -1267,7 +1267,7 @@ in
sources."is-fullwidth-code-point-3.0.0" sources."is-fullwidth-code-point-3.0.0"
sources."is-glob-4.0.3" sources."is-glob-4.0.3"
sources."is-number-7.0.0" sources."is-number-7.0.0"
sources."js-beautify-1.14.0" sources."js-beautify-1.14.3"
(sources."juice-7.0.0" // { (sources."juice-7.0.0" // {
dependencies = [ dependencies = [
sources."commander-5.1.0" sources."commander-5.1.0"
@ -1278,40 +1278,40 @@ in
sources."lru-cache-4.1.5" sources."lru-cache-4.1.5"
sources."mensch-0.3.4" sources."mensch-0.3.4"
sources."mime-2.6.0" sources."mime-2.6.0"
sources."minimatch-3.0.4" sources."minimatch-3.1.2"
sources."mjml-accordion-4.11.0" sources."mjml-accordion-4.12.0"
sources."mjml-body-4.11.0" sources."mjml-body-4.12.0"
sources."mjml-button-4.11.0" sources."mjml-button-4.12.0"
sources."mjml-carousel-4.11.0" sources."mjml-carousel-4.12.0"
sources."mjml-cli-4.11.0" sources."mjml-cli-4.12.0"
sources."mjml-column-4.11.0" sources."mjml-column-4.12.0"
sources."mjml-core-4.11.0" sources."mjml-core-4.12.0"
sources."mjml-divider-4.11.0" sources."mjml-divider-4.12.0"
sources."mjml-group-4.11.0" sources."mjml-group-4.12.0"
sources."mjml-head-4.11.0" sources."mjml-head-4.12.0"
sources."mjml-head-attributes-4.11.0" sources."mjml-head-attributes-4.12.0"
sources."mjml-head-breakpoint-4.11.0" sources."mjml-head-breakpoint-4.12.0"
sources."mjml-head-font-4.11.0" sources."mjml-head-font-4.12.0"
sources."mjml-head-html-attributes-4.11.0" sources."mjml-head-html-attributes-4.12.0"
sources."mjml-head-preview-4.11.0" sources."mjml-head-preview-4.12.0"
sources."mjml-head-style-4.11.0" sources."mjml-head-style-4.12.0"
sources."mjml-head-title-4.11.0" sources."mjml-head-title-4.12.0"
sources."mjml-hero-4.11.0" sources."mjml-hero-4.12.0"
sources."mjml-image-4.11.0" sources."mjml-image-4.12.0"
sources."mjml-migrate-4.11.0" sources."mjml-migrate-4.12.0"
sources."mjml-navbar-4.11.0" sources."mjml-navbar-4.12.0"
sources."mjml-parser-xml-4.11.0" sources."mjml-parser-xml-4.12.0"
sources."mjml-preset-core-4.11.0" sources."mjml-preset-core-4.12.0"
sources."mjml-raw-4.11.0" sources."mjml-raw-4.12.0"
sources."mjml-section-4.11.0" sources."mjml-section-4.12.0"
sources."mjml-social-4.11.0" sources."mjml-social-4.12.0"
sources."mjml-spacer-4.11.0" sources."mjml-spacer-4.12.0"
sources."mjml-table-4.11.0" sources."mjml-table-4.12.0"
sources."mjml-text-4.11.0" sources."mjml-text-4.12.0"
sources."mjml-validator-4.11.0" sources."mjml-validator-4.12.0"
sources."mjml-wrapper-4.11.0" sources."mjml-wrapper-4.12.0"
sources."no-case-2.3.2" sources."no-case-2.3.2"
sources."node-fetch-2.6.6" sources."node-fetch-2.6.7"
sources."nopt-5.0.0" sources."nopt-5.0.0"
sources."normalize-path-3.0.0" sources."normalize-path-3.0.0"
sources."nth-check-2.0.1" sources."nth-check-2.0.1"
@ -1320,7 +1320,7 @@ in
sources."parse5-6.0.1" sources."parse5-6.0.1"
sources."parse5-htmlparser2-tree-adapter-6.0.1" sources."parse5-htmlparser2-tree-adapter-6.0.1"
sources."path-is-absolute-1.0.1" sources."path-is-absolute-1.0.1"
sources."picomatch-2.3.0" sources."picomatch-2.3.1"
sources."proto-list-1.2.4" sources."proto-list-1.2.4"
sources."pseudomap-1.0.2" sources."pseudomap-1.0.2"
sources."readdirp-3.6.0" sources."readdirp-3.6.0"
@ -1335,8 +1335,8 @@ in
sources."strip-ansi-6.0.1" sources."strip-ansi-6.0.1"
sources."to-regex-range-5.0.1" sources."to-regex-range-5.0.1"
sources."tr46-0.0.3" sources."tr46-0.0.3"
sources."tslib-2.3.1" sources."tslib-2.4.0"
sources."uglify-js-3.14.5" sources."uglify-js-3.15.4"
sources."upper-case-1.1.3" sources."upper-case-1.1.3"
sources."valid-data-url-3.0.1" sources."valid-data-url-3.0.1"
sources."web-resource-inliner-5.0.0" sources."web-resource-inliner-5.0.0"

View file

@ -3,4 +3,4 @@
set -euo pipefail set -euo pipefail
node2nix -i "package.json" --nodejs-12 node2nix -i "package.json" --nodejs-16

View file

@ -1,4 +1,4 @@
# This file has been generated by node2nix 1.9.0. Do not edit! # This file has been generated by node2nix 1.11.1. Do not edit!
{pkgs ? import <nixpkgs> { {pkgs ? import <nixpkgs> {
inherit system; inherit system;
@ -6,7 +6,7 @@
let let
nodeEnv = import ./node-env.nix { nodeEnv = import ./node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile; inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
inherit pkgs nodejs; inherit pkgs nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null; libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
}; };

View file

@ -1,6 +1,6 @@
# This file originates from node2nix # This file originates from node2nix
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile}: {lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}:
let let
# Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master # Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
@ -40,36 +40,22 @@ let
''; '';
}; };
includeDependencies = {dependencies}: # Common shell logic
lib.optionalString (dependencies != []) installPackage = writeShellScript "install-package" ''
(lib.concatMapStrings (dependency: installPackage() {
'' local packageName=$1 src=$2
# Bundle the dependencies of the package
mkdir -p node_modules
cd node_modules
# Only include dependencies if they don't exist. They may also be bundled in the package. local strippedName
if [ ! -e "${dependency.name}" ]
then
${composePackage dependency}
fi
cd .. local DIR=$PWD
''
) dependencies);
# Recursively composes the dependencies of a package
composePackage = { name, packageName, src, dependencies ? [], ... }@args:
builtins.addErrorContext "while evaluating node package '${packageName}'" ''
DIR=$(pwd)
cd $TMPDIR cd $TMPDIR
unpackFile ${src} unpackFile $src
# Make the base dir in which the target dependency resides first # Make the base dir in which the target dependency resides first
mkdir -p "$(dirname "$DIR/${packageName}")" mkdir -p "$(dirname "$DIR/$packageName")"
if [ -f "${src}" ] if [ -f "$src" ]
then then
# Figure out what directory has been unpacked # Figure out what directory has been unpacked
packageDir="$(find . -maxdepth 1 -type d | tail -1)" packageDir="$(find . -maxdepth 1 -type d | tail -1)"
@ -79,28 +65,53 @@ let
chmod -R u+w "$packageDir" chmod -R u+w "$packageDir"
# Move the extracted tarball into the output folder # Move the extracted tarball into the output folder
mv "$packageDir" "$DIR/${packageName}" mv "$packageDir" "$DIR/$packageName"
elif [ -d "${src}" ] elif [ -d "$src" ]
then then
# Get a stripped name (without hash) of the source directory. # Get a stripped name (without hash) of the source directory.
# On old nixpkgs it's already set internally. # On old nixpkgs it's already set internally.
if [ -z "$strippedName" ] if [ -z "$strippedName" ]
then then
strippedName="$(stripHash ${src})" strippedName="$(stripHash $src)"
fi fi
# Restore write permissions to make building work # Restore write permissions to make building work
chmod -R u+w "$strippedName" chmod -R u+w "$strippedName"
# Move the extracted directory into the output folder # Move the extracted directory into the output folder
mv "$strippedName" "$DIR/${packageName}" mv "$strippedName" "$DIR/$packageName"
fi fi
# Unset the stripped name to not confuse the next unpack step # Change to the package directory to install dependencies
unset strippedName cd "$DIR/$packageName"
}
'';
# Include the dependencies of the package # Bundle the dependencies of the package
cd "$DIR/${packageName}" #
# Only include dependencies if they don't exist. They may also be bundled in the package.
includeDependencies = {dependencies}:
lib.optionalString (dependencies != []) (
''
mkdir -p node_modules
cd node_modules
''
+ (lib.concatMapStrings (dependency:
''
if [ ! -e "${dependency.packageName}" ]; then
${composePackage dependency}
fi
''
) dependencies)
+ ''
cd ..
''
);
# Recursively composes the dependencies of a package
composePackage = { name, packageName, src, dependencies ? [], ... }@args:
builtins.addErrorContext "while evaluating node package '${packageName}'" ''
installPackage "${packageName}" "${src}"
${includeDependencies { inherit dependencies; }} ${includeDependencies { inherit dependencies; }}
cd .. cd ..
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."} ${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
@ -379,12 +390,12 @@ let
buildNodePackage = buildNodePackage =
{ name { name
, packageName , packageName
, version , version ? null
, dependencies ? [] , dependencies ? []
, buildInputs ? [] , buildInputs ? []
, production ? true , production ? true
, npmFlags ? "" , npmFlags ? ""
, dontNpmInstall ? false , dontNpmInstall ? true
, bypassCache ? false , bypassCache ? false
, reconstructLock ? false , reconstructLock ? false
, preRebuild ? "" , preRebuild ? ""
@ -398,7 +409,7 @@ let
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ]; extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ];
in in
stdenv.mkDerivation ({ stdenv.mkDerivation ({
name = "${name}-${version}"; name = "${name}${if version == null then "" else "-${version}"}";
buildInputs = [ tarWrapper python nodejs ] buildInputs = [ tarWrapper python nodejs ]
++ lib.optional (stdenv.isLinux) utillinux ++ lib.optional (stdenv.isLinux) utillinux
++ lib.optional (stdenv.isDarwin) libtool ++ lib.optional (stdenv.isDarwin) libtool
@ -415,6 +426,8 @@ let
passAsFile = [ "compositionScript" "pinpointDependenciesScript" ]; passAsFile = [ "compositionScript" "pinpointDependenciesScript" ];
installPhase = '' installPhase = ''
source ${installPackage}
# Create and enter a root node_modules/ folder # Create and enter a root node_modules/ folder
mkdir -p $out/lib/node_modules mkdir -p $out/lib/node_modules
cd $out/lib/node_modules cd $out/lib/node_modules
@ -428,6 +441,14 @@ let
if [ -d "$out/lib/node_modules/.bin" ] if [ -d "$out/lib/node_modules/.bin" ]
then then
ln -s $out/lib/node_modules/.bin $out/bin ln -s $out/lib/node_modules/.bin $out/bin
# Patch the shebang lines of all the executables
ls $out/bin/* | while read i
do
file="$(readlink -f "$i")"
chmod u+rwx "$file"
patchShebangs "$file"
done
fi fi
# Create symlinks to the deployed manual page folders, if applicable # Create symlinks to the deployed manual page folders, if applicable
@ -458,13 +479,13 @@ let
buildNodeDependencies = buildNodeDependencies =
{ name { name
, packageName , packageName
, version , version ? null
, src , src
, dependencies ? [] , dependencies ? []
, buildInputs ? [] , buildInputs ? []
, production ? true , production ? true
, npmFlags ? "" , npmFlags ? ""
, dontNpmInstall ? false , dontNpmInstall ? true
, bypassCache ? false , bypassCache ? false
, reconstructLock ? false , reconstructLock ? false
, dontStrip ? true , dontStrip ? true
@ -476,7 +497,7 @@ let
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ]; extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ];
in in
stdenv.mkDerivation ({ stdenv.mkDerivation ({
name = "node-dependencies-${name}-${version}"; name = "node-dependencies-${name}${if version == null then "" else "-${version}"}";
buildInputs = [ tarWrapper python nodejs ] buildInputs = [ tarWrapper python nodejs ]
++ lib.optional (stdenv.isLinux) utillinux ++ lib.optional (stdenv.isLinux) utillinux
@ -492,6 +513,8 @@ let
passAsFile = [ "includeScript" "pinpointDependenciesScript" ]; passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
installPhase = '' installPhase = ''
source ${installPackage}
mkdir -p $out/${packageName} mkdir -p $out/${packageName}
cd $out/${packageName} cd $out/${packageName}
@ -504,6 +527,7 @@ let
if [ -f ${src}/package-lock.json ] if [ -f ${src}/package-lock.json ]
then then
cp ${src}/package-lock.json . cp ${src}/package-lock.json .
chmod 644 package-lock.json
fi fi
''} ''}
@ -526,13 +550,13 @@ let
buildNodeShell = buildNodeShell =
{ name { name
, packageName , packageName
, version , version ? null
, src , src
, dependencies ? [] , dependencies ? []
, buildInputs ? [] , buildInputs ? []
, production ? true , production ? true
, npmFlags ? "" , npmFlags ? ""
, dontNpmInstall ? false , dontNpmInstall ? true
, bypassCache ? false , bypassCache ? false
, reconstructLock ? false , reconstructLock ? false
, dontStrip ? true , dontStrip ? true
@ -542,9 +566,10 @@ let
let let
nodeDependencies = buildNodeDependencies args; nodeDependencies = buildNodeDependencies args;
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "unpackPhase" "buildPhase" ];
in in
stdenv.mkDerivation { stdenv.mkDerivation ({
name = "node-shell-${name}-${version}"; name = "node-shell-${name}${if version == null then "" else "-${version}"}";
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs; buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
buildCommand = '' buildCommand = ''
@ -563,7 +588,7 @@ let
export NODE_PATH=${nodeDependencies}/lib/node_modules export NODE_PATH=${nodeDependencies}/lib/node_modules
export PATH="${nodeDependencies}/bin:$PATH" export PATH="${nodeDependencies}/bin:$PATH"
''; '';
}; } // extraArgs);
in in
{ {
buildNodeSourceDist = lib.makeOverridable buildNodeSourceDist; buildNodeSourceDist = lib.makeOverridable buildNodeSourceDist;

File diff suppressed because it is too large Load diff