nix/pkgs/baserow: update to NodeJS 16.x (latest LTS)
This commit is contained in:
parent
759179662a
commit
a95b91798d
8 changed files with 1585 additions and 1316 deletions
|
@ -4,7 +4,7 @@
|
|||
, stdenv
|
||||
, makeWrapper
|
||||
, python3
|
||||
, nodejs-12_x
|
||||
, nodejs-16_x
|
||||
, ossOnly ? true
|
||||
}:
|
||||
|
||||
|
@ -35,7 +35,7 @@ let
|
|||
inherit (pkgs) system;
|
||||
};
|
||||
|
||||
nodejs = nodejs-12_x;
|
||||
nodejs = nodejs-16_x;
|
||||
python = python3.override {
|
||||
packageOverrides = self: super:
|
||||
let
|
||||
|
|
|
@ -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> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-16_x"}:
|
||||
|
||||
let
|
||||
nodeEnv = import ./node-env.nix {
|
||||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
|
||||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
|
||||
inherit pkgs nodejs;
|
||||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# This file originates from node2nix
|
||||
|
||||
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile}:
|
||||
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}:
|
||||
|
||||
let
|
||||
# Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
|
||||
|
@ -40,36 +40,22 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
includeDependencies = {dependencies}:
|
||||
lib.optionalString (dependencies != [])
|
||||
(lib.concatMapStrings (dependency:
|
||||
''
|
||||
# Bundle the dependencies of the package
|
||||
mkdir -p node_modules
|
||||
cd node_modules
|
||||
# Common shell logic
|
||||
installPackage = writeShellScript "install-package" ''
|
||||
installPackage() {
|
||||
local packageName=$1 src=$2
|
||||
|
||||
# Only include dependencies if they don't exist. They may also be bundled in the package.
|
||||
if [ ! -e "${dependency.name}" ]
|
||||
then
|
||||
${composePackage dependency}
|
||||
fi
|
||||
local strippedName
|
||||
|
||||
cd ..
|
||||
''
|
||||
) dependencies);
|
||||
|
||||
# Recursively composes the dependencies of a package
|
||||
composePackage = { name, packageName, src, dependencies ? [], ... }@args:
|
||||
builtins.addErrorContext "while evaluating node package '${packageName}'" ''
|
||||
DIR=$(pwd)
|
||||
local DIR=$PWD
|
||||
cd $TMPDIR
|
||||
|
||||
unpackFile ${src}
|
||||
unpackFile $src
|
||||
|
||||
# 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
|
||||
# Figure out what directory has been unpacked
|
||||
packageDir="$(find . -maxdepth 1 -type d | tail -1)"
|
||||
|
@ -79,28 +65,53 @@ let
|
|||
chmod -R u+w "$packageDir"
|
||||
|
||||
# Move the extracted tarball into the output folder
|
||||
mv "$packageDir" "$DIR/${packageName}"
|
||||
elif [ -d "${src}" ]
|
||||
mv "$packageDir" "$DIR/$packageName"
|
||||
elif [ -d "$src" ]
|
||||
then
|
||||
# Get a stripped name (without hash) of the source directory.
|
||||
# On old nixpkgs it's already set internally.
|
||||
if [ -z "$strippedName" ]
|
||||
then
|
||||
strippedName="$(stripHash ${src})"
|
||||
strippedName="$(stripHash $src)"
|
||||
fi
|
||||
|
||||
# Restore write permissions to make building work
|
||||
chmod -R u+w "$strippedName"
|
||||
|
||||
# Move the extracted directory into the output folder
|
||||
mv "$strippedName" "$DIR/${packageName}"
|
||||
mv "$strippedName" "$DIR/$packageName"
|
||||
fi
|
||||
|
||||
# Unset the stripped name to not confuse the next unpack step
|
||||
unset strippedName
|
||||
# Change to the package directory to install dependencies
|
||||
cd "$DIR/$packageName"
|
||||
}
|
||||
'';
|
||||
|
||||
# Include the dependencies of the package
|
||||
cd "$DIR/${packageName}"
|
||||
# Bundle the dependencies of the package
|
||||
#
|
||||
# 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; }}
|
||||
cd ..
|
||||
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
||||
|
@ -246,8 +257,8 @@ let
|
|||
var packageLock = JSON.parse(fs.readFileSync("./package-lock.json"));
|
||||
|
||||
if(![1, 2].includes(packageLock.lockfileVersion)) {
|
||||
process.stderr.write("Sorry, I only understand lock file versions 1 and 2!\n");
|
||||
process.exit(1);
|
||||
process.stderr.write("Sorry, I only understand lock file versions 1 and 2!\n");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if(packageLock.dependencies !== undefined) {
|
||||
|
@ -379,12 +390,12 @@ let
|
|||
buildNodePackage =
|
||||
{ name
|
||||
, packageName
|
||||
, version
|
||||
, version ? null
|
||||
, dependencies ? []
|
||||
, buildInputs ? []
|
||||
, production ? true
|
||||
, npmFlags ? ""
|
||||
, dontNpmInstall ? false
|
||||
, dontNpmInstall ? true
|
||||
, bypassCache ? false
|
||||
, reconstructLock ? false
|
||||
, preRebuild ? ""
|
||||
|
@ -398,7 +409,7 @@ let
|
|||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ];
|
||||
in
|
||||
stdenv.mkDerivation ({
|
||||
name = "${name}-${version}";
|
||||
name = "${name}${if version == null then "" else "-${version}"}";
|
||||
buildInputs = [ tarWrapper python nodejs ]
|
||||
++ lib.optional (stdenv.isLinux) utillinux
|
||||
++ lib.optional (stdenv.isDarwin) libtool
|
||||
|
@ -415,6 +426,8 @@ let
|
|||
passAsFile = [ "compositionScript" "pinpointDependenciesScript" ];
|
||||
|
||||
installPhase = ''
|
||||
source ${installPackage}
|
||||
|
||||
# Create and enter a root node_modules/ folder
|
||||
mkdir -p $out/lib/node_modules
|
||||
cd $out/lib/node_modules
|
||||
|
@ -428,6 +441,14 @@ let
|
|||
if [ -d "$out/lib/node_modules/.bin" ]
|
||||
then
|
||||
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
|
||||
|
||||
# Create symlinks to the deployed manual page folders, if applicable
|
||||
|
@ -458,13 +479,13 @@ let
|
|||
buildNodeDependencies =
|
||||
{ name
|
||||
, packageName
|
||||
, version
|
||||
, version ? null
|
||||
, src
|
||||
, dependencies ? []
|
||||
, buildInputs ? []
|
||||
, production ? true
|
||||
, npmFlags ? ""
|
||||
, dontNpmInstall ? false
|
||||
, dontNpmInstall ? true
|
||||
, bypassCache ? false
|
||||
, reconstructLock ? false
|
||||
, dontStrip ? true
|
||||
|
@ -476,7 +497,7 @@ let
|
|||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ];
|
||||
in
|
||||
stdenv.mkDerivation ({
|
||||
name = "node-dependencies-${name}-${version}";
|
||||
name = "node-dependencies-${name}${if version == null then "" else "-${version}"}";
|
||||
|
||||
buildInputs = [ tarWrapper python nodejs ]
|
||||
++ lib.optional (stdenv.isLinux) utillinux
|
||||
|
@ -492,6 +513,8 @@ let
|
|||
passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
|
||||
|
||||
installPhase = ''
|
||||
source ${installPackage}
|
||||
|
||||
mkdir -p $out/${packageName}
|
||||
cd $out/${packageName}
|
||||
|
||||
|
@ -504,6 +527,7 @@ let
|
|||
if [ -f ${src}/package-lock.json ]
|
||||
then
|
||||
cp ${src}/package-lock.json .
|
||||
chmod 644 package-lock.json
|
||||
fi
|
||||
''}
|
||||
|
||||
|
@ -526,13 +550,13 @@ let
|
|||
buildNodeShell =
|
||||
{ name
|
||||
, packageName
|
||||
, version
|
||||
, version ? null
|
||||
, src
|
||||
, dependencies ? []
|
||||
, buildInputs ? []
|
||||
, production ? true
|
||||
, npmFlags ? ""
|
||||
, dontNpmInstall ? false
|
||||
, dontNpmInstall ? true
|
||||
, bypassCache ? false
|
||||
, reconstructLock ? false
|
||||
, dontStrip ? true
|
||||
|
@ -542,9 +566,10 @@ let
|
|||
|
||||
let
|
||||
nodeDependencies = buildNodeDependencies args;
|
||||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "unpackPhase" "buildPhase" ];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "node-shell-${name}-${version}";
|
||||
stdenv.mkDerivation ({
|
||||
name = "node-shell-${name}${if version == null then "" else "-${version}"}";
|
||||
|
||||
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
|
||||
buildCommand = ''
|
||||
|
@ -563,7 +588,7 @@ let
|
|||
export NODE_PATH=${nodeDependencies}/lib/node_modules
|
||||
export PATH="${nodeDependencies}/bin:$PATH"
|
||||
'';
|
||||
};
|
||||
} // extraArgs);
|
||||
in
|
||||
{
|
||||
buildNodeSourceDist = lib.makeOverridable buildNodeSourceDist;
|
||||
|
|
|
@ -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 ? []}:
|
||||
|
||||
let
|
||||
sources = {
|
||||
"@babel/runtime-7.16.5" = {
|
||||
"@babel/runtime-7.17.9" = {
|
||||
name = "_at_babel_slash_runtime";
|
||||
packageName = "@babel/runtime";
|
||||
version = "7.16.5";
|
||||
version = "7.17.9";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.5.tgz";
|
||||
sha512 = "TXWihFIS3Pyv5hzR7j6ihmeLkZfrXGxAr5UfSl8CHf+6q/wpiYDkUau0czckpYG8QmnCIuPpdLtuA9VmuGGyMA==";
|
||||
url = "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.9.tgz";
|
||||
sha512 = "lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==";
|
||||
};
|
||||
};
|
||||
"abbrev-1.1.1" = {
|
||||
|
@ -121,22 +121,22 @@ let
|
|||
sha512 = "g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw==";
|
||||
};
|
||||
};
|
||||
"cheerio-select-1.5.0" = {
|
||||
"cheerio-select-1.6.0" = {
|
||||
name = "cheerio-select";
|
||||
packageName = "cheerio-select";
|
||||
version = "1.5.0";
|
||||
version = "1.6.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.5.0.tgz";
|
||||
sha512 = "qocaHPv5ypefh6YNxvnbABM07KMxExbtbfuJoIie3iZXX1ERwYmJcIiRrr9H05ucQP1k28dav8rpdDgjQd8drg==";
|
||||
url = "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.6.0.tgz";
|
||||
sha512 = "eq0GdBvxVFbqWgmCm7M3XGs1I8oLy/nExUnh6oLqmBditPO9AqQJrkslDpMun/hZ0yyTs8L0m85OHp4ho6Qm9g==";
|
||||
};
|
||||
};
|
||||
"chokidar-3.5.2" = {
|
||||
"chokidar-3.5.3" = {
|
||||
name = "chokidar";
|
||||
packageName = "chokidar";
|
||||
version = "3.5.2";
|
||||
version = "3.5.3";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz";
|
||||
sha512 = "ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==";
|
||||
url = "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz";
|
||||
sha512 = "Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==";
|
||||
};
|
||||
};
|
||||
"clean-css-4.2.4" = {
|
||||
|
@ -211,22 +211,22 @@ let
|
|||
sha512 = "qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==";
|
||||
};
|
||||
};
|
||||
"css-select-4.2.0" = {
|
||||
"css-select-4.3.0" = {
|
||||
name = "css-select";
|
||||
packageName = "css-select";
|
||||
version = "4.2.0";
|
||||
version = "4.3.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/css-select/-/css-select-4.2.0.tgz";
|
||||
sha512 = "6YVG6hsH9yIb/si3Th/is8Pex7qnVHO6t7q7U6TIUnkQASGbS8tnUDBftnPynLNnuUl/r2+PTd0ekiiq7R0zJw==";
|
||||
url = "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz";
|
||||
sha512 = "wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==";
|
||||
};
|
||||
};
|
||||
"css-what-5.1.0" = {
|
||||
"css-what-6.1.0" = {
|
||||
name = "css-what";
|
||||
packageName = "css-what";
|
||||
version = "5.1.0";
|
||||
version = "6.1.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz";
|
||||
sha512 = "arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==";
|
||||
url = "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz";
|
||||
sha512 = "HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==";
|
||||
};
|
||||
};
|
||||
"detect-node-2.0.4" = {
|
||||
|
@ -238,22 +238,22 @@ let
|
|||
sha512 = "ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==";
|
||||
};
|
||||
};
|
||||
"dom-serializer-1.3.2" = {
|
||||
"dom-serializer-1.4.1" = {
|
||||
name = "dom-serializer";
|
||||
packageName = "dom-serializer";
|
||||
version = "1.3.2";
|
||||
version = "1.4.1";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz";
|
||||
sha512 = "5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==";
|
||||
url = "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz";
|
||||
sha512 = "VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==";
|
||||
};
|
||||
};
|
||||
"domelementtype-2.2.0" = {
|
||||
"domelementtype-2.3.0" = {
|
||||
name = "domelementtype";
|
||||
packageName = "domelementtype";
|
||||
version = "2.2.0";
|
||||
version = "2.3.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz";
|
||||
sha512 = "DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==";
|
||||
url = "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz";
|
||||
sha512 = "OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==";
|
||||
};
|
||||
};
|
||||
"domhandler-3.3.0" = {
|
||||
|
@ -265,13 +265,13 @@ let
|
|||
sha512 = "J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==";
|
||||
};
|
||||
};
|
||||
"domhandler-4.3.0" = {
|
||||
"domhandler-4.3.1" = {
|
||||
name = "domhandler";
|
||||
packageName = "domhandler";
|
||||
version = "4.3.0";
|
||||
version = "4.3.1";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz";
|
||||
sha512 = "fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==";
|
||||
url = "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz";
|
||||
sha512 = "GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==";
|
||||
};
|
||||
};
|
||||
"domutils-2.8.0" = {
|
||||
|
@ -490,13 +490,13 @@ let
|
|||
sha512 = "41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==";
|
||||
};
|
||||
};
|
||||
"js-beautify-1.14.0" = {
|
||||
"js-beautify-1.14.3" = {
|
||||
name = "js-beautify";
|
||||
packageName = "js-beautify";
|
||||
version = "1.14.0";
|
||||
version = "1.14.3";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.0.tgz";
|
||||
sha512 = "yuck9KirNSCAwyNJbqW+BxJqJ0NLJ4PwBUzQQACl5O3qHMBXVkXb/rD0ilh/Lat/tn88zSZ+CAHOlk0DsY7GuQ==";
|
||||
url = "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.3.tgz";
|
||||
sha512 = "f1ra8PHtOEu/70EBnmiUlV8nJePS58y9qKjl4JHfYWlFH6bo7ogZBz//FAZp7jDuXtYnGYKymZPlrg2I/9Zo4g==";
|
||||
};
|
||||
};
|
||||
"juice-7.0.0" = {
|
||||
|
@ -553,292 +553,292 @@ let
|
|||
sha512 = "USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==";
|
||||
};
|
||||
};
|
||||
"minimatch-3.0.4" = {
|
||||
"minimatch-3.1.2" = {
|
||||
name = "minimatch";
|
||||
packageName = "minimatch";
|
||||
version = "3.0.4";
|
||||
version = "3.1.2";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz";
|
||||
sha512 = "yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==";
|
||||
url = "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz";
|
||||
sha512 = "J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==";
|
||||
};
|
||||
};
|
||||
"mjml-accordion-4.11.0" = {
|
||||
"mjml-accordion-4.12.0" = {
|
||||
name = "mjml-accordion";
|
||||
packageName = "mjml-accordion";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-accordion/-/mjml-accordion-4.11.0.tgz";
|
||||
sha512 = "u6cPMl4z8JeRIq0sGHWfzwE5SqwBhSPHJ8wElhfU7CK6gAoUTz4BIL/03da2whXk0S34n5CSU453JpuWV+3bQQ==";
|
||||
url = "https://registry.npmjs.org/mjml-accordion/-/mjml-accordion-4.12.0.tgz";
|
||||
sha512 = "vqBk4NhXN+w6F3c5vnLxkvgneREpkwTzZpbxtMzpNqkUW2yei0oSQ26j/wLgXYTaX+4Czp+oVr0cnNxjyCZHjA==";
|
||||
};
|
||||
};
|
||||
"mjml-body-4.11.0" = {
|
||||
"mjml-body-4.12.0" = {
|
||||
name = "mjml-body";
|
||||
packageName = "mjml-body";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-body/-/mjml-body-4.11.0.tgz";
|
||||
sha512 = "+SQXOjKOr9IMblmslrUbv+ahF/SkqT7mAuix1P/F9ev3aS+WN7Gy/lyJLaq1zhSQCmzrBDovHez3bJ7NGToU0g==";
|
||||
url = "https://registry.npmjs.org/mjml-body/-/mjml-body-4.12.0.tgz";
|
||||
sha512 = "IQBAHhdRKsNUXat+oxvRTjVJ1qzTRkNjFe/mtD/Pbn9olUnQmV+RKxnkqRZf7QtiTxVIOGC4kU9VLPjNymsFXQ==";
|
||||
};
|
||||
};
|
||||
"mjml-button-4.11.0" = {
|
||||
"mjml-button-4.12.0" = {
|
||||
name = "mjml-button";
|
||||
packageName = "mjml-button";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-button/-/mjml-button-4.11.0.tgz";
|
||||
sha512 = "v/MwA2Kq2MlHJwrajdAqUihjAQivD8FpkpOAcqdgqI1ffaEDzd6FGFt5qOtVD9BncChQ4a51haOnPd+kbBLlCA==";
|
||||
url = "https://registry.npmjs.org/mjml-button/-/mjml-button-4.12.0.tgz";
|
||||
sha512 = "XJfLP+mHvCr6Ky16ooYz5+8ODkf10+ATyvENCKyrof+rietr5WxN2FxWCZA9Orq20OE74/hvaOeZZdkxwtsXig==";
|
||||
};
|
||||
};
|
||||
"mjml-carousel-4.11.0" = {
|
||||
"mjml-carousel-4.12.0" = {
|
||||
name = "mjml-carousel";
|
||||
packageName = "mjml-carousel";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-carousel/-/mjml-carousel-4.11.0.tgz";
|
||||
sha512 = "/owKKSg3DNes1rauPPhlGCFdZ4zzoxdztPLGOm9TSjkbL5q2cN9NMfzNdTYLnnVG5G5XWX0THjDeeq+bGnHw8w==";
|
||||
url = "https://registry.npmjs.org/mjml-carousel/-/mjml-carousel-4.12.0.tgz";
|
||||
sha512 = "vQ5Aqvix9mbAE0GspxIDpKK4dVMRuKFO3qV6N/CkrIAOe4+2CKV4AMn2fWUvQEx6hA6CGxayeLkI7E0hNOWcZA==";
|
||||
};
|
||||
};
|
||||
"mjml-cli-4.11.0" = {
|
||||
"mjml-cli-4.12.0" = {
|
||||
name = "mjml-cli";
|
||||
packageName = "mjml-cli";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-cli/-/mjml-cli-4.11.0.tgz";
|
||||
sha512 = "jgkxNY+sY+CwiUlO6VX8cwVjlLBXIzE7X4fXkQ2RjXpbAvsN8uDafST8oL8PDlxNIjOwK6YJySzZSLXSKTF5Zg==";
|
||||
url = "https://registry.npmjs.org/mjml-cli/-/mjml-cli-4.12.0.tgz";
|
||||
sha512 = "//Y4XsN6aFgpZtDbQZRu4qe+CQzGWV3i5K3rC1dwPcdtpDMsXBPKiwIZFrQxpRVBwxs0hU4ZBQOMtvYZkoicdQ==";
|
||||
};
|
||||
};
|
||||
"mjml-column-4.11.0" = {
|
||||
"mjml-column-4.12.0" = {
|
||||
name = "mjml-column";
|
||||
packageName = "mjml-column";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-column/-/mjml-column-4.11.0.tgz";
|
||||
sha512 = "yuupexywYXuXTvxxGLPZw6S/D6fz4b41ZarOkEPW8Pbj7FkfnBTO3QokAS5KapJ9x6sIAVs+cCgUul87dwOBzg==";
|
||||
url = "https://registry.npmjs.org/mjml-column/-/mjml-column-4.12.0.tgz";
|
||||
sha512 = "Ub/7ov2B1T2jfSpxvF61o3UCU4gGDFUqIelr7ghuazLc2KvTwdHYeR8mWt8l8RBM6zZiWjkYEFMP22ty7WXztg==";
|
||||
};
|
||||
};
|
||||
"mjml-core-4.11.0" = {
|
||||
"mjml-core-4.12.0" = {
|
||||
name = "mjml-core";
|
||||
packageName = "mjml-core";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-core/-/mjml-core-4.11.0.tgz";
|
||||
sha512 = "UTI1exu9/0lOF40aacAzC9A7RrJPcay7WYurYsb+X2LbDyfBlSx5ZCtuUTHwLfIz3PL6rSg8yrZ3KtlmhQJ/kQ==";
|
||||
url = "https://registry.npmjs.org/mjml-core/-/mjml-core-4.12.0.tgz";
|
||||
sha512 = "B3gUkV3kFN1IlzIV3GnpWBmE21XHH5ARyydMxacR75iC53PvJ9c50hr6DWLGdrrDCC6Fdud8jTmgD9dnWPmJhQ==";
|
||||
};
|
||||
};
|
||||
"mjml-divider-4.11.0" = {
|
||||
"mjml-divider-4.12.0" = {
|
||||
name = "mjml-divider";
|
||||
packageName = "mjml-divider";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-divider/-/mjml-divider-4.11.0.tgz";
|
||||
sha512 = "jS8Sa7uuFTmThtrcV3FICtbqmA0yJplldaNJwW5upiq7MEXuSwLNzjNeodaTpsVWevf/stE3C4lBA3+V4ascMg==";
|
||||
url = "https://registry.npmjs.org/mjml-divider/-/mjml-divider-4.12.0.tgz";
|
||||
sha512 = "L87iqrhVS+PnUInYbXK4lcTQcHfWMTL7ZqDL9XEMBywzX8cCfviLNMbqmLCO2HD8nMPVMRbcE32H04T6LyZ2qw==";
|
||||
};
|
||||
};
|
||||
"mjml-group-4.11.0" = {
|
||||
"mjml-group-4.12.0" = {
|
||||
name = "mjml-group";
|
||||
packageName = "mjml-group";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-group/-/mjml-group-4.11.0.tgz";
|
||||
sha512 = "Yv1ZcPNk4bxOK/eol6bjJvRJBaOCzVY88QO8IfCQifAZuiXhatxwsuwaRKNcTi4cB+IHwl4JguZHgsFRi/Gf/g==";
|
||||
url = "https://registry.npmjs.org/mjml-group/-/mjml-group-4.12.0.tgz";
|
||||
sha512 = "Rl7Iydd7M2SnbH1ItIi07hYY+FrEai5c6kYMKbcFWAuNupCuvUThuhx1AphMPCZFMLbbPSKNWMarBkWhepS7cw==";
|
||||
};
|
||||
};
|
||||
"mjml-head-4.11.0" = {
|
||||
"mjml-head-4.12.0" = {
|
||||
name = "mjml-head";
|
||||
packageName = "mjml-head";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head/-/mjml-head-4.11.0.tgz";
|
||||
sha512 = "KNaSsOlf5FNwHyZQD6YNZN2Eo/o7n+mZISFLyp9MvNFaT3NKIRJDaInD1WjN+w2aHdXAw4sDV3+/9/EET2bh1A==";
|
||||
url = "https://registry.npmjs.org/mjml-head/-/mjml-head-4.12.0.tgz";
|
||||
sha512 = "LcI4ykOB6nMV5W//tF9S1unlXxexfNZUnnyZ2OOzP1V7J5poLXdKXqB8XATN2YGGTsDZ5Q/5V1KO+NnjpW7zSw==";
|
||||
};
|
||||
};
|
||||
"mjml-head-attributes-4.11.0" = {
|
||||
"mjml-head-attributes-4.12.0" = {
|
||||
name = "mjml-head-attributes";
|
||||
packageName = "mjml-head-attributes";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head-attributes/-/mjml-head-attributes-4.11.0.tgz";
|
||||
sha512 = "azeDRLGH7cU6PoXLd08E/H3UDHFsblBTcme++OWrj5B21vaFguOBySO2eWFTyWLthy+xst8FftWV46f8BWvciw==";
|
||||
url = "https://registry.npmjs.org/mjml-head-attributes/-/mjml-head-attributes-4.12.0.tgz";
|
||||
sha512 = "tRwKUzIrtcw1FGy8Xpy4vrFo0u2daZgqx3X0cM5WWrGFcKe7ZdjNEAkU/3w+WsFjeMcb0fHdKvd+sxBjPJ6fpA==";
|
||||
};
|
||||
};
|
||||
"mjml-head-breakpoint-4.11.0" = {
|
||||
"mjml-head-breakpoint-4.12.0" = {
|
||||
name = "mjml-head-breakpoint";
|
||||
packageName = "mjml-head-breakpoint";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head-breakpoint/-/mjml-head-breakpoint-4.11.0.tgz";
|
||||
sha512 = "OQ/WpXHagGoiUmBjoMHuxdigyLQrHNL6+Op0LHO87vN1GH2ap4YLcSSegIsThQLi/I7V4/JFZbzS5jV4xd4SMg==";
|
||||
url = "https://registry.npmjs.org/mjml-head-breakpoint/-/mjml-head-breakpoint-4.12.0.tgz";
|
||||
sha512 = "BVVbvAIcIu49P1EJkEPPIY8Gu4GleyzpkdddqD3ihAPn3Pz07SEsFlHvI35eCszuaJeeMbSSxLrsF4m+aQQlvw==";
|
||||
};
|
||||
};
|
||||
"mjml-head-font-4.11.0" = {
|
||||
"mjml-head-font-4.12.0" = {
|
||||
name = "mjml-head-font";
|
||||
packageName = "mjml-head-font";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head-font/-/mjml-head-font-4.11.0.tgz";
|
||||
sha512 = "AJQ9lhNzNr0hwPjUID76LNna3U8ycmFH1lyipZOWHTivOVGkSYs8PaboxORfU/QAEDKo/p8LafBAoDPEdSigxA==";
|
||||
url = "https://registry.npmjs.org/mjml-head-font/-/mjml-head-font-4.12.0.tgz";
|
||||
sha512 = "ja5sWbGOIr1gF/7IIPzrgOlWYiKk57BC8JWYRANV7CxNKa635sd6aBJHbzXv1A6Ph+zH5KtE0MSQCK8n49BIsw==";
|
||||
};
|
||||
};
|
||||
"mjml-head-html-attributes-4.11.0" = {
|
||||
"mjml-head-html-attributes-4.12.0" = {
|
||||
name = "mjml-head-html-attributes";
|
||||
packageName = "mjml-head-html-attributes";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head-html-attributes/-/mjml-head-html-attributes-4.11.0.tgz";
|
||||
sha512 = "Gew9EAuqFu9QR3g+8FyE9WHNMszx1ejzo8dRDIuTaBCDEpaIaPVO7G5rGhT7ADqZufeYtRhBXfXjcShPD/a30g==";
|
||||
url = "https://registry.npmjs.org/mjml-head-html-attributes/-/mjml-head-html-attributes-4.12.0.tgz";
|
||||
sha512 = "XJesJuW9uzlNN5w/S7t5ZquSVDay7BehOKmIZKMwKn1y0SJBXiakcwt9M9hhF0HB189Bew0gpGt3m7QYvTez8g==";
|
||||
};
|
||||
};
|
||||
"mjml-head-preview-4.11.0" = {
|
||||
"mjml-head-preview-4.12.0" = {
|
||||
name = "mjml-head-preview";
|
||||
packageName = "mjml-head-preview";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head-preview/-/mjml-head-preview-4.11.0.tgz";
|
||||
sha512 = "f79+OtwC8CYcQpglGNfm3s74qVecdwLlDm9DD/LJvZwIdaALeIfZF36nz6+rtCLMhND+wxgqxqkmbbuS6AbO+A==";
|
||||
url = "https://registry.npmjs.org/mjml-head-preview/-/mjml-head-preview-4.12.0.tgz";
|
||||
sha512 = "pr02ZkxwU6/LWhrL3xP/hLrUXx27I1FnfgaYjgvMjh6pMURuy7W+W8BrNJKeyXZo685b2A5lNFDJV7rCJ6HrEQ==";
|
||||
};
|
||||
};
|
||||
"mjml-head-style-4.11.0" = {
|
||||
"mjml-head-style-4.12.0" = {
|
||||
name = "mjml-head-style";
|
||||
packageName = "mjml-head-style";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head-style/-/mjml-head-style-4.11.0.tgz";
|
||||
sha512 = "jw0r9Ld56SkJmDUBx+27xOH+oY2O06FBcKSJIkZLJ/sefbjgJa2/ti2eso/LeGgrmTw8zge7g1pp0Fl+kPjsGA==";
|
||||
url = "https://registry.npmjs.org/mjml-head-style/-/mjml-head-style-4.12.0.tgz";
|
||||
sha512 = "64IVdJ2Xl000SrwLt4cebl+MiZcino/ywMkuLQ/c48XeR6pkvbjXYAInWsdlMG1y041n1bOZICNnQQc4xhNJrw==";
|
||||
};
|
||||
};
|
||||
"mjml-head-title-4.11.0" = {
|
||||
"mjml-head-title-4.12.0" = {
|
||||
name = "mjml-head-title";
|
||||
packageName = "mjml-head-title";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-head-title/-/mjml-head-title-4.11.0.tgz";
|
||||
sha512 = "mjYsKoE9+5LI8V0mK9SAKVKspF19TVius2q5I1FXLRdBmt4Ei87CdrSui+iixGrug0Lwt4P2W3+mK8kVGNnJAQ==";
|
||||
url = "https://registry.npmjs.org/mjml-head-title/-/mjml-head-title-4.12.0.tgz";
|
||||
sha512 = "c7thJUmNLIdVy1ftLbYUjchHwrIfAb9SHdbuVQHdtQz45a3Ni2nie4AWxF/srn90k8q/uEKtQq1taOa4f71Zug==";
|
||||
};
|
||||
};
|
||||
"mjml-hero-4.11.0" = {
|
||||
"mjml-hero-4.12.0" = {
|
||||
name = "mjml-hero";
|
||||
packageName = "mjml-hero";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-hero/-/mjml-hero-4.11.0.tgz";
|
||||
sha512 = "tZDCGjQrDICwbsDnLvfVEsQ5+GdrIozB3oO3NxC6m2Eq04VKNBkIqq+QvJyouOxzJ3CZgO2B4rylzxc6YXuHsw==";
|
||||
url = "https://registry.npmjs.org/mjml-hero/-/mjml-hero-4.12.0.tgz";
|
||||
sha512 = "j87DgSAyLzMMuNtVqR1okkI/orKnvZoR7i+RsA1yueNql9dZtnw3Ezy8cas8MJaAoGOmqIy9AqGRJIr82w4mxQ==";
|
||||
};
|
||||
};
|
||||
"mjml-image-4.11.0" = {
|
||||
"mjml-image-4.12.0" = {
|
||||
name = "mjml-image";
|
||||
packageName = "mjml-image";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-image/-/mjml-image-4.11.0.tgz";
|
||||
sha512 = "qjvKS/x2arDNgKppPecmg69VyXdQbb1CNVqPwowJLyfjioTw4hxQ93suWoBKJJojRjkwauj9IRMC8TR9ffn0HQ==";
|
||||
url = "https://registry.npmjs.org/mjml-image/-/mjml-image-4.12.0.tgz";
|
||||
sha512 = "P77M+PLLNn7QvGhL8sx+6yzkQbEMxIQO3yxqUC+x8Ie8kXS8phSNGcqx8qfhdN7p7sQ3CZdOIZSXkG7RRAF94w==";
|
||||
};
|
||||
};
|
||||
"mjml-migrate-4.11.0" = {
|
||||
"mjml-migrate-4.12.0" = {
|
||||
name = "mjml-migrate";
|
||||
packageName = "mjml-migrate";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-migrate/-/mjml-migrate-4.11.0.tgz";
|
||||
sha512 = "Y+9U4w9LwlTkfTkHX9GdalIQDO4JQxboG4PM8g7vRKNhKSZDZH8QSr0SNhX0+fMQmjb9b0nztWbMVVvNZfMoPQ==";
|
||||
url = "https://registry.npmjs.org/mjml-migrate/-/mjml-migrate-4.12.0.tgz";
|
||||
sha512 = "KDdPkuOzL9CAekY0CslM0Yqiomk4TubNMszw6UFfylp5xRA3CfBo0HdGcnewHBkZ8+isjPlzDWf3n+NkU11OiA==";
|
||||
};
|
||||
};
|
||||
"mjml-navbar-4.11.0" = {
|
||||
"mjml-navbar-4.12.0" = {
|
||||
name = "mjml-navbar";
|
||||
packageName = "mjml-navbar";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-navbar/-/mjml-navbar-4.11.0.tgz";
|
||||
sha512 = "FEd+8RD6ra8652jXdMbhfhzT1YY8TA30c34qjJ+ULlFgvLH4GNnYRIOHp/Mgd/L38Qf3bhK/rK9ELBidJ36dLQ==";
|
||||
url = "https://registry.npmjs.org/mjml-navbar/-/mjml-navbar-4.12.0.tgz";
|
||||
sha512 = "TWKV5lFgwUvRbG+FNz6Uo7mGPJRU/BK1v0BeQr1e5Ykft4052iYIuv2XNwRkeoORmLT+7AN8FbkP+TVBpflbWw==";
|
||||
};
|
||||
};
|
||||
"mjml-parser-xml-4.11.0" = {
|
||||
"mjml-parser-xml-4.12.0" = {
|
||||
name = "mjml-parser-xml";
|
||||
packageName = "mjml-parser-xml";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-parser-xml/-/mjml-parser-xml-4.11.0.tgz";
|
||||
sha512 = "3toQ9UKyfzXWXJ7PlTExBjzGXAzJNORv39sorPv5sG2KJsvPC6NE+e+/1GyqYFhk4JffHoDfd4mQ6w050qYATQ==";
|
||||
url = "https://registry.npmjs.org/mjml-parser-xml/-/mjml-parser-xml-4.12.0.tgz";
|
||||
sha512 = "cmCcvoiirH0kuCglGAjwBVfDrlnqS3e83uBwPN6wDN6IfxSgsPT6IV0vRfcJERsr2ThpFjvoSq4GmYi9oCUSMw==";
|
||||
};
|
||||
};
|
||||
"mjml-preset-core-4.11.0" = {
|
||||
"mjml-preset-core-4.12.0" = {
|
||||
name = "mjml-preset-core";
|
||||
packageName = "mjml-preset-core";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-preset-core/-/mjml-preset-core-4.11.0.tgz";
|
||||
sha512 = "HU9ZFzS+A7Dx0B/EbnqYjdcIQQuxpOVRfFReQBlllZYwjWaRUjDIeIjF+cdnCb9QveuSNo4msIG00h/MKPYiGQ==";
|
||||
url = "https://registry.npmjs.org/mjml-preset-core/-/mjml-preset-core-4.12.0.tgz";
|
||||
sha512 = "zoiCKcl/bK43ltr2J8dY9Qg5fcB3TbhaWcTG84oGYWdii5WEkKTXj5hpP1ss1XqdOGMNLij/HVwmli+xQCo6FQ==";
|
||||
};
|
||||
};
|
||||
"mjml-raw-4.11.0" = {
|
||||
"mjml-raw-4.12.0" = {
|
||||
name = "mjml-raw";
|
||||
packageName = "mjml-raw";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-raw/-/mjml-raw-4.11.0.tgz";
|
||||
sha512 = "DyUwC/JrE8tF7v9XaKQpQ/yAg5tT2uAWSDI6J5x3t3TNFJmRPd3iorSu8v6t1s3OiekuxfagsDDPLFuzpGwZSw==";
|
||||
url = "https://registry.npmjs.org/mjml-raw/-/mjml-raw-4.12.0.tgz";
|
||||
sha512 = "vQUmrEZEgu0DCca7tiPdQ/vf8GM5QyeaabbLd1rX3XCt5Mid47LCdszmVcrk1WxqNuExIw1fNyEGCCDeP2qCJg==";
|
||||
};
|
||||
};
|
||||
"mjml-section-4.11.0" = {
|
||||
"mjml-section-4.12.0" = {
|
||||
name = "mjml-section";
|
||||
packageName = "mjml-section";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-section/-/mjml-section-4.11.0.tgz";
|
||||
sha512 = "OpinxE019Z1symrEFku3UddsvSql2aolcAiOThFuAAXz3+tUuooofGMy/XyyMOuOnktOx/5PMcVFsV84/Jye/g==";
|
||||
url = "https://registry.npmjs.org/mjml-section/-/mjml-section-4.12.0.tgz";
|
||||
sha512 = "5BdHrAghS/XJ40t3qtLHpY3rIVuBnJXv8dGm8U+oMVAzw3L4ySk5WI+FulRkchdPFCKpeXQZjXZaX0C7pmNaIw==";
|
||||
};
|
||||
};
|
||||
"mjml-social-4.11.0" = {
|
||||
"mjml-social-4.12.0" = {
|
||||
name = "mjml-social";
|
||||
packageName = "mjml-social";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-social/-/mjml-social-4.11.0.tgz";
|
||||
sha512 = "tM5njGtang0VRWt+XCuMTnZP2IJehUd+kdsC7CnMKQhYI2X4vzEaOBLgXRWvhcT4pSBzEJkXB9sQ+y7JmLO10g==";
|
||||
url = "https://registry.npmjs.org/mjml-social/-/mjml-social-4.12.0.tgz";
|
||||
sha512 = "eTsqJoKP65Imawh+WEX2dv4N34ItUmvIbsCeSQPhC/NG6klxDjzg5oDA1F2tZk+CPIuXVmJiauQ5/vPHLzUiVw==";
|
||||
};
|
||||
};
|
||||
"mjml-spacer-4.11.0" = {
|
||||
"mjml-spacer-4.12.0" = {
|
||||
name = "mjml-spacer";
|
||||
packageName = "mjml-spacer";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-spacer/-/mjml-spacer-4.11.0.tgz";
|
||||
sha512 = "9s6PjFgznKEFgFZCSa4vTYVDQ6kRH5ucMHGraoHS4VMZLA8QIaVakHd4Sl0n+SGWCqair4xZ3vYYMhOBKIXmMw==";
|
||||
url = "https://registry.npmjs.org/mjml-spacer/-/mjml-spacer-4.12.0.tgz";
|
||||
sha512 = "YB+VCixcuWXDzICrGLFw7PJDkL166e4OG8IUUB2yhvd5VHtFFBc0iRksaEAumOL1r6MnXVCRq4Wcmxlzj7zOfQ==";
|
||||
};
|
||||
};
|
||||
"mjml-table-4.11.0" = {
|
||||
"mjml-table-4.12.0" = {
|
||||
name = "mjml-table";
|
||||
packageName = "mjml-table";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-table/-/mjml-table-4.11.0.tgz";
|
||||
sha512 = "ccniRz1MoDqKS6zoNM59xi81M7zy/tkvd/6weyH9XAZiU7ATgOxoBuIMy+d0uSTlKPWNwoi2FqR5YSedxT2YPw==";
|
||||
url = "https://registry.npmjs.org/mjml-table/-/mjml-table-4.12.0.tgz";
|
||||
sha512 = "IuLvyiJOsM6RgobuIfZuM36fJcoH8pK/A4awCLTEme0HCxEkkjzDkl4RBMK/KX53Cpor0U6oR6RlQfZcducpLg==";
|
||||
};
|
||||
};
|
||||
"mjml-text-4.11.0" = {
|
||||
"mjml-text-4.12.0" = {
|
||||
name = "mjml-text";
|
||||
packageName = "mjml-text";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-text/-/mjml-text-4.11.0.tgz";
|
||||
sha512 = "xrY5+uepxUg+q5KKuKX2s9KQnnlsMN5aoCt0JSbjt4H9ZwBpqXPD4Z2uJ8eZS33FvnXzUYPNVdKralvXnrsXKA==";
|
||||
url = "https://registry.npmjs.org/mjml-text/-/mjml-text-4.12.0.tgz";
|
||||
sha512 = "AFcXiQBC48ZfKKgAdU0NRS2nqftc8zLGxBtPwHNgFkuh5Lf2rWgPK6JRubNi7qhb8Sd7M8stU+LIRA5sxM1nRQ==";
|
||||
};
|
||||
};
|
||||
"mjml-validator-4.11.0" = {
|
||||
"mjml-validator-4.12.0" = {
|
||||
name = "mjml-validator";
|
||||
packageName = "mjml-validator";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-validator/-/mjml-validator-4.11.0.tgz";
|
||||
sha512 = "oDL9tHcL4PaCZMwH6T/lLpS7LV9cm9lIwnzJy+y5/S81MGMV6kPr6xXHgS0A01G7sseg6+rHgqBnUgzUob4Ilg==";
|
||||
url = "https://registry.npmjs.org/mjml-validator/-/mjml-validator-4.12.0.tgz";
|
||||
sha512 = "EmOScfcJJ4LdIyHnE+K4FdkryQ+c6QRV7qp+zlunAHE5AUPaBS0OrHPHuNo1sOu7g1tc+bVl7eHR4FIb0Wkzwg==";
|
||||
};
|
||||
};
|
||||
"mjml-wrapper-4.11.0" = {
|
||||
"mjml-wrapper-4.12.0" = {
|
||||
name = "mjml-wrapper";
|
||||
packageName = "mjml-wrapper";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml-wrapper/-/mjml-wrapper-4.11.0.tgz";
|
||||
sha512 = "WXGKxS+DlYalx5ofwq3bttj26BLEcaueeQ+0BcffXIELojUzd0+xTyX09v0QemUCBmKpHB2QaKMGhzYuSkupyg==";
|
||||
url = "https://registry.npmjs.org/mjml-wrapper/-/mjml-wrapper-4.12.0.tgz";
|
||||
sha512 = "u0pq+A9QBLwpeF/hdv2uWZIv3Qp4wwf+CMaHZsUpb3YfOJD/6YKwLvkeA7ngE+YxwwzgtgjmIEs4eDae1evlgQ==";
|
||||
};
|
||||
};
|
||||
"no-case-2.3.2" = {
|
||||
|
@ -850,13 +850,13 @@ let
|
|||
sha512 = "rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==";
|
||||
};
|
||||
};
|
||||
"node-fetch-2.6.6" = {
|
||||
"node-fetch-2.6.7" = {
|
||||
name = "node-fetch";
|
||||
packageName = "node-fetch";
|
||||
version = "2.6.6";
|
||||
version = "2.6.7";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz";
|
||||
sha512 = "Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==";
|
||||
url = "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz";
|
||||
sha512 = "ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==";
|
||||
};
|
||||
};
|
||||
"nopt-5.0.0" = {
|
||||
|
@ -931,13 +931,13 @@ let
|
|||
sha1 = "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f";
|
||||
};
|
||||
};
|
||||
"picomatch-2.3.0" = {
|
||||
"picomatch-2.3.1" = {
|
||||
name = "picomatch";
|
||||
packageName = "picomatch";
|
||||
version = "2.3.0";
|
||||
version = "2.3.1";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz";
|
||||
sha512 = "lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==";
|
||||
url = "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz";
|
||||
sha512 = "JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==";
|
||||
};
|
||||
};
|
||||
"proto-list-1.2.4" = {
|
||||
|
@ -1066,22 +1066,22 @@ let
|
|||
sha1 = "8184fd347dac9cdc185992f3a6622e14b9d9ab6a";
|
||||
};
|
||||
};
|
||||
"tslib-2.3.1" = {
|
||||
"tslib-2.4.0" = {
|
||||
name = "tslib";
|
||||
packageName = "tslib";
|
||||
version = "2.3.1";
|
||||
version = "2.4.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz";
|
||||
sha512 = "77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==";
|
||||
url = "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz";
|
||||
sha512 = "d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==";
|
||||
};
|
||||
};
|
||||
"uglify-js-3.14.5" = {
|
||||
"uglify-js-3.15.4" = {
|
||||
name = "uglify-js";
|
||||
packageName = "uglify-js";
|
||||
version = "3.14.5";
|
||||
version = "3.15.4";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.5.tgz";
|
||||
sha512 = "qZukoSxOG0urUTvjc2ERMTcAy+BiFh3weWAkeurLwjrCba73poHmG3E36XEjd/JGukMzwTL7uCxZiAexj8ppvQ==";
|
||||
url = "https://registry.npmjs.org/uglify-js/-/uglify-js-3.15.4.tgz";
|
||||
sha512 = "vMOPGDuvXecPs34V74qDKk4iJ/SN4vL3Ow/23ixafENYvtrNvtbcgUeugTcUGRGsOF/5fU8/NYSL5Hyb3l1OJA==";
|
||||
};
|
||||
};
|
||||
"upper-case-1.1.3" = {
|
||||
|
@ -1189,13 +1189,13 @@ in
|
|||
mjml = nodeEnv.buildNodePackage {
|
||||
name = "mjml";
|
||||
packageName = "mjml";
|
||||
version = "4.11.0";
|
||||
version = "4.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mjml/-/mjml-4.11.0.tgz";
|
||||
sha512 = "kYuCAds/8F7m7xNEs3TFkrc0jxnNYIkexQIUNByPLQJFoFRltpgXLSdoyreGAniQtDGITPE+p8FIocLUBKsOHg==";
|
||||
url = "https://registry.npmjs.org/mjml/-/mjml-4.12.0.tgz";
|
||||
sha512 = "uWDu1pPQVyoX4iKIrM02J6qOBN6PC1rSMP64DKi2qGU4dpOztVgvTBh6JttIbINV4ZiALtpeGu+jeEUqp2ROXA==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."@babel/runtime-7.16.5"
|
||||
sources."@babel/runtime-7.17.9"
|
||||
sources."abbrev-1.1.1"
|
||||
sources."ansi-colors-4.1.1"
|
||||
sources."ansi-regex-5.0.1"
|
||||
|
@ -1209,16 +1209,16 @@ in
|
|||
sources."camel-case-3.0.0"
|
||||
(sources."cheerio-1.0.0-rc.10" // {
|
||||
dependencies = [
|
||||
sources."domhandler-4.3.0"
|
||||
sources."domhandler-4.3.1"
|
||||
sources."htmlparser2-6.1.0"
|
||||
];
|
||||
})
|
||||
(sources."cheerio-select-1.5.0" // {
|
||||
(sources."cheerio-select-1.6.0" // {
|
||||
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."cliui-7.0.4"
|
||||
sources."color-convert-2.0.1"
|
||||
|
@ -1226,23 +1226,23 @@ in
|
|||
sources."commander-2.20.3"
|
||||
sources."concat-map-0.0.1"
|
||||
sources."config-chain-1.1.13"
|
||||
(sources."css-select-4.2.0" // {
|
||||
(sources."css-select-4.3.0" // {
|
||||
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."dom-serializer-1.3.2" // {
|
||||
(sources."dom-serializer-1.4.1" // {
|
||||
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."domutils-2.8.0" // {
|
||||
dependencies = [
|
||||
sources."domhandler-4.3.0"
|
||||
sources."domhandler-4.3.1"
|
||||
];
|
||||
})
|
||||
sources."editorconfig-0.15.3"
|
||||
|
@ -1267,7 +1267,7 @@ in
|
|||
sources."is-fullwidth-code-point-3.0.0"
|
||||
sources."is-glob-4.0.3"
|
||||
sources."is-number-7.0.0"
|
||||
sources."js-beautify-1.14.0"
|
||||
sources."js-beautify-1.14.3"
|
||||
(sources."juice-7.0.0" // {
|
||||
dependencies = [
|
||||
sources."commander-5.1.0"
|
||||
|
@ -1278,40 +1278,40 @@ in
|
|||
sources."lru-cache-4.1.5"
|
||||
sources."mensch-0.3.4"
|
||||
sources."mime-2.6.0"
|
||||
sources."minimatch-3.0.4"
|
||||
sources."mjml-accordion-4.11.0"
|
||||
sources."mjml-body-4.11.0"
|
||||
sources."mjml-button-4.11.0"
|
||||
sources."mjml-carousel-4.11.0"
|
||||
sources."mjml-cli-4.11.0"
|
||||
sources."mjml-column-4.11.0"
|
||||
sources."mjml-core-4.11.0"
|
||||
sources."mjml-divider-4.11.0"
|
||||
sources."mjml-group-4.11.0"
|
||||
sources."mjml-head-4.11.0"
|
||||
sources."mjml-head-attributes-4.11.0"
|
||||
sources."mjml-head-breakpoint-4.11.0"
|
||||
sources."mjml-head-font-4.11.0"
|
||||
sources."mjml-head-html-attributes-4.11.0"
|
||||
sources."mjml-head-preview-4.11.0"
|
||||
sources."mjml-head-style-4.11.0"
|
||||
sources."mjml-head-title-4.11.0"
|
||||
sources."mjml-hero-4.11.0"
|
||||
sources."mjml-image-4.11.0"
|
||||
sources."mjml-migrate-4.11.0"
|
||||
sources."mjml-navbar-4.11.0"
|
||||
sources."mjml-parser-xml-4.11.0"
|
||||
sources."mjml-preset-core-4.11.0"
|
||||
sources."mjml-raw-4.11.0"
|
||||
sources."mjml-section-4.11.0"
|
||||
sources."mjml-social-4.11.0"
|
||||
sources."mjml-spacer-4.11.0"
|
||||
sources."mjml-table-4.11.0"
|
||||
sources."mjml-text-4.11.0"
|
||||
sources."mjml-validator-4.11.0"
|
||||
sources."mjml-wrapper-4.11.0"
|
||||
sources."minimatch-3.1.2"
|
||||
sources."mjml-accordion-4.12.0"
|
||||
sources."mjml-body-4.12.0"
|
||||
sources."mjml-button-4.12.0"
|
||||
sources."mjml-carousel-4.12.0"
|
||||
sources."mjml-cli-4.12.0"
|
||||
sources."mjml-column-4.12.0"
|
||||
sources."mjml-core-4.12.0"
|
||||
sources."mjml-divider-4.12.0"
|
||||
sources."mjml-group-4.12.0"
|
||||
sources."mjml-head-4.12.0"
|
||||
sources."mjml-head-attributes-4.12.0"
|
||||
sources."mjml-head-breakpoint-4.12.0"
|
||||
sources."mjml-head-font-4.12.0"
|
||||
sources."mjml-head-html-attributes-4.12.0"
|
||||
sources."mjml-head-preview-4.12.0"
|
||||
sources."mjml-head-style-4.12.0"
|
||||
sources."mjml-head-title-4.12.0"
|
||||
sources."mjml-hero-4.12.0"
|
||||
sources."mjml-image-4.12.0"
|
||||
sources."mjml-migrate-4.12.0"
|
||||
sources."mjml-navbar-4.12.0"
|
||||
sources."mjml-parser-xml-4.12.0"
|
||||
sources."mjml-preset-core-4.12.0"
|
||||
sources."mjml-raw-4.12.0"
|
||||
sources."mjml-section-4.12.0"
|
||||
sources."mjml-social-4.12.0"
|
||||
sources."mjml-spacer-4.12.0"
|
||||
sources."mjml-table-4.12.0"
|
||||
sources."mjml-text-4.12.0"
|
||||
sources."mjml-validator-4.12.0"
|
||||
sources."mjml-wrapper-4.12.0"
|
||||
sources."no-case-2.3.2"
|
||||
sources."node-fetch-2.6.6"
|
||||
sources."node-fetch-2.6.7"
|
||||
sources."nopt-5.0.0"
|
||||
sources."normalize-path-3.0.0"
|
||||
sources."nth-check-2.0.1"
|
||||
|
@ -1320,7 +1320,7 @@ in
|
|||
sources."parse5-6.0.1"
|
||||
sources."parse5-htmlparser2-tree-adapter-6.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."pseudomap-1.0.2"
|
||||
sources."readdirp-3.6.0"
|
||||
|
@ -1335,8 +1335,8 @@ in
|
|||
sources."strip-ansi-6.0.1"
|
||||
sources."to-regex-range-5.0.1"
|
||||
sources."tr46-0.0.3"
|
||||
sources."tslib-2.3.1"
|
||||
sources."uglify-js-3.14.5"
|
||||
sources."tslib-2.4.0"
|
||||
sources."uglify-js-3.15.4"
|
||||
sources."upper-case-1.1.3"
|
||||
sources."valid-data-url-3.0.1"
|
||||
sources."web-resource-inliner-5.0.0"
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
node2nix -i "package.json" --nodejs-12
|
||||
node2nix -i "package.json" --nodejs-16
|
||||
|
|
|
@ -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> {
|
||||
inherit system;
|
||||
|
@ -6,7 +6,7 @@
|
|||
|
||||
let
|
||||
nodeEnv = import ./node-env.nix {
|
||||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
|
||||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
|
||||
inherit pkgs nodejs;
|
||||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# This file originates from node2nix
|
||||
|
||||
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile}:
|
||||
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}:
|
||||
|
||||
let
|
||||
# Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
|
||||
|
@ -40,36 +40,22 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
includeDependencies = {dependencies}:
|
||||
lib.optionalString (dependencies != [])
|
||||
(lib.concatMapStrings (dependency:
|
||||
''
|
||||
# Bundle the dependencies of the package
|
||||
mkdir -p node_modules
|
||||
cd node_modules
|
||||
# Common shell logic
|
||||
installPackage = writeShellScript "install-package" ''
|
||||
installPackage() {
|
||||
local packageName=$1 src=$2
|
||||
|
||||
# Only include dependencies if they don't exist. They may also be bundled in the package.
|
||||
if [ ! -e "${dependency.name}" ]
|
||||
then
|
||||
${composePackage dependency}
|
||||
fi
|
||||
local strippedName
|
||||
|
||||
cd ..
|
||||
''
|
||||
) dependencies);
|
||||
|
||||
# Recursively composes the dependencies of a package
|
||||
composePackage = { name, packageName, src, dependencies ? [], ... }@args:
|
||||
builtins.addErrorContext "while evaluating node package '${packageName}'" ''
|
||||
DIR=$(pwd)
|
||||
local DIR=$PWD
|
||||
cd $TMPDIR
|
||||
|
||||
unpackFile ${src}
|
||||
unpackFile $src
|
||||
|
||||
# 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
|
||||
# Figure out what directory has been unpacked
|
||||
packageDir="$(find . -maxdepth 1 -type d | tail -1)"
|
||||
|
@ -79,28 +65,53 @@ let
|
|||
chmod -R u+w "$packageDir"
|
||||
|
||||
# Move the extracted tarball into the output folder
|
||||
mv "$packageDir" "$DIR/${packageName}"
|
||||
elif [ -d "${src}" ]
|
||||
mv "$packageDir" "$DIR/$packageName"
|
||||
elif [ -d "$src" ]
|
||||
then
|
||||
# Get a stripped name (without hash) of the source directory.
|
||||
# On old nixpkgs it's already set internally.
|
||||
if [ -z "$strippedName" ]
|
||||
then
|
||||
strippedName="$(stripHash ${src})"
|
||||
strippedName="$(stripHash $src)"
|
||||
fi
|
||||
|
||||
# Restore write permissions to make building work
|
||||
chmod -R u+w "$strippedName"
|
||||
|
||||
# Move the extracted directory into the output folder
|
||||
mv "$strippedName" "$DIR/${packageName}"
|
||||
mv "$strippedName" "$DIR/$packageName"
|
||||
fi
|
||||
|
||||
# Unset the stripped name to not confuse the next unpack step
|
||||
unset strippedName
|
||||
# Change to the package directory to install dependencies
|
||||
cd "$DIR/$packageName"
|
||||
}
|
||||
'';
|
||||
|
||||
# Include the dependencies of the package
|
||||
cd "$DIR/${packageName}"
|
||||
# Bundle the dependencies of the package
|
||||
#
|
||||
# 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; }}
|
||||
cd ..
|
||||
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
||||
|
@ -246,8 +257,8 @@ let
|
|||
var packageLock = JSON.parse(fs.readFileSync("./package-lock.json"));
|
||||
|
||||
if(![1, 2].includes(packageLock.lockfileVersion)) {
|
||||
process.stderr.write("Sorry, I only understand lock file versions 1 and 2!\n");
|
||||
process.exit(1);
|
||||
process.stderr.write("Sorry, I only understand lock file versions 1 and 2!\n");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if(packageLock.dependencies !== undefined) {
|
||||
|
@ -379,12 +390,12 @@ let
|
|||
buildNodePackage =
|
||||
{ name
|
||||
, packageName
|
||||
, version
|
||||
, version ? null
|
||||
, dependencies ? []
|
||||
, buildInputs ? []
|
||||
, production ? true
|
||||
, npmFlags ? ""
|
||||
, dontNpmInstall ? false
|
||||
, dontNpmInstall ? true
|
||||
, bypassCache ? false
|
||||
, reconstructLock ? false
|
||||
, preRebuild ? ""
|
||||
|
@ -398,7 +409,7 @@ let
|
|||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ];
|
||||
in
|
||||
stdenv.mkDerivation ({
|
||||
name = "${name}-${version}";
|
||||
name = "${name}${if version == null then "" else "-${version}"}";
|
||||
buildInputs = [ tarWrapper python nodejs ]
|
||||
++ lib.optional (stdenv.isLinux) utillinux
|
||||
++ lib.optional (stdenv.isDarwin) libtool
|
||||
|
@ -415,6 +426,8 @@ let
|
|||
passAsFile = [ "compositionScript" "pinpointDependenciesScript" ];
|
||||
|
||||
installPhase = ''
|
||||
source ${installPackage}
|
||||
|
||||
# Create and enter a root node_modules/ folder
|
||||
mkdir -p $out/lib/node_modules
|
||||
cd $out/lib/node_modules
|
||||
|
@ -428,6 +441,14 @@ let
|
|||
if [ -d "$out/lib/node_modules/.bin" ]
|
||||
then
|
||||
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
|
||||
|
||||
# Create symlinks to the deployed manual page folders, if applicable
|
||||
|
@ -458,13 +479,13 @@ let
|
|||
buildNodeDependencies =
|
||||
{ name
|
||||
, packageName
|
||||
, version
|
||||
, version ? null
|
||||
, src
|
||||
, dependencies ? []
|
||||
, buildInputs ? []
|
||||
, production ? true
|
||||
, npmFlags ? ""
|
||||
, dontNpmInstall ? false
|
||||
, dontNpmInstall ? true
|
||||
, bypassCache ? false
|
||||
, reconstructLock ? false
|
||||
, dontStrip ? true
|
||||
|
@ -476,7 +497,7 @@ let
|
|||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ];
|
||||
in
|
||||
stdenv.mkDerivation ({
|
||||
name = "node-dependencies-${name}-${version}";
|
||||
name = "node-dependencies-${name}${if version == null then "" else "-${version}"}";
|
||||
|
||||
buildInputs = [ tarWrapper python nodejs ]
|
||||
++ lib.optional (stdenv.isLinux) utillinux
|
||||
|
@ -492,6 +513,8 @@ let
|
|||
passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
|
||||
|
||||
installPhase = ''
|
||||
source ${installPackage}
|
||||
|
||||
mkdir -p $out/${packageName}
|
||||
cd $out/${packageName}
|
||||
|
||||
|
@ -504,6 +527,7 @@ let
|
|||
if [ -f ${src}/package-lock.json ]
|
||||
then
|
||||
cp ${src}/package-lock.json .
|
||||
chmod 644 package-lock.json
|
||||
fi
|
||||
''}
|
||||
|
||||
|
@ -526,13 +550,13 @@ let
|
|||
buildNodeShell =
|
||||
{ name
|
||||
, packageName
|
||||
, version
|
||||
, version ? null
|
||||
, src
|
||||
, dependencies ? []
|
||||
, buildInputs ? []
|
||||
, production ? true
|
||||
, npmFlags ? ""
|
||||
, dontNpmInstall ? false
|
||||
, dontNpmInstall ? true
|
||||
, bypassCache ? false
|
||||
, reconstructLock ? false
|
||||
, dontStrip ? true
|
||||
|
@ -542,9 +566,10 @@ let
|
|||
|
||||
let
|
||||
nodeDependencies = buildNodeDependencies args;
|
||||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "unpackPhase" "buildPhase" ];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "node-shell-${name}-${version}";
|
||||
stdenv.mkDerivation ({
|
||||
name = "node-shell-${name}${if version == null then "" else "-${version}"}";
|
||||
|
||||
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
|
||||
buildCommand = ''
|
||||
|
@ -563,7 +588,7 @@ let
|
|||
export NODE_PATH=${nodeDependencies}/lib/node_modules
|
||||
export PATH="${nodeDependencies}/bin:$PATH"
|
||||
'';
|
||||
};
|
||||
} // extraArgs);
|
||||
in
|
||||
{
|
||||
buildNodeSourceDist = lib.makeOverridable buildNodeSourceDist;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue