nodePackages: meguca: 1.0.7 -> 1.0.8
This commit is contained in:
parent
cd667e43ae
commit
ec92e4dbe2
@ -1,8 +1,8 @@
|
|||||||
# This file has been generated by node2nix 1.6.0. Do not edit!
|
# This file has been generated by node2nix 1.5.3. Do not edit!
|
||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
{pkgs ? import <nixpkgs> {
|
||||||
inherit system;
|
inherit system;
|
||||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-10_x"}:
|
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-4_x"}:
|
||||||
|
|
||||||
let
|
let
|
||||||
nodeEnv = import ./node-env.nix {
|
nodeEnv = import ./node-env.nix {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# This file has been generated by node2nix 1.6.0. Do not edit!
|
# This file has been generated by node2nix 1.5.3. Do not edit!
|
||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
{pkgs ? import <nixpkgs> {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# This file has been generated by node2nix 1.6.0. Do not edit!
|
# This file has been generated by node2nix 1.5.3. Do not edit!
|
||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
{pkgs ? import <nixpkgs> {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -27,7 +27,7 @@ let
|
|||||||
buildInputs = [ nodejs ];
|
buildInputs = [ nodejs ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
tgzFile=$(npm pack | tail -n 1) # Hooks to the pack command will add output (https://docs.npmjs.com/misc/scripts)
|
tgzFile=$(npm pack)
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/tarballs
|
mkdir -p $out/tarballs
|
||||||
@ -309,42 +309,31 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Builds and composes an NPM package including all its dependencies
|
# Builds and composes an NPM package including all its dependencies
|
||||||
buildNodePackage =
|
buildNodePackage = { name, packageName, version, dependencies ? [], production ? true, npmFlags ? "", dontNpmInstall ? false, bypassCache ? false, preRebuild ? "", ... }@args:
|
||||||
{ name
|
|
||||||
, packageName
|
|
||||||
, version
|
|
||||||
, dependencies ? []
|
|
||||||
, buildInputs ? []
|
|
||||||
, production ? true
|
|
||||||
, npmFlags ? ""
|
|
||||||
, dontNpmInstall ? false
|
|
||||||
, bypassCache ? false
|
|
||||||
, preRebuild ? ""
|
|
||||||
, dontStrip ? true
|
|
||||||
, unpackPhase ? "true"
|
|
||||||
, buildPhase ? "true"
|
|
||||||
, ... }@args:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
forceOfflineFlag = if bypassCache then "--offline" else "--registry http://www.example.com";
|
forceOfflineFlag = if bypassCache then "--offline" else "--registry http://www.example.com";
|
||||||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" ];
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation ({
|
stdenv.lib.makeOverridable stdenv.mkDerivation (builtins.removeAttrs args [ "dependencies" ] // {
|
||||||
name = "node-${name}-${version}";
|
name = "node-${name}-${version}";
|
||||||
buildInputs = [ tarWrapper python nodejs ]
|
buildInputs = [ tarWrapper python nodejs ]
|
||||||
++ stdenv.lib.optional (stdenv.isLinux) utillinux
|
++ stdenv.lib.optional (stdenv.isLinux) utillinux
|
||||||
++ stdenv.lib.optional (stdenv.isDarwin) libtool
|
++ stdenv.lib.optional (stdenv.isDarwin) libtool
|
||||||
++ buildInputs;
|
++ args.buildInputs or [];
|
||||||
|
dontStrip = args.dontStrip or true; # Striping may fail a build for some package deployments
|
||||||
|
|
||||||
inherit dontStrip; # Stripping may fail a build for some package deployments
|
inherit dontNpmInstall preRebuild;
|
||||||
inherit dontNpmInstall preRebuild unpackPhase buildPhase;
|
|
||||||
|
unpackPhase = args.unpackPhase or "true";
|
||||||
|
|
||||||
|
buildPhase = args.buildPhase or "true";
|
||||||
|
|
||||||
compositionScript = composePackage args;
|
compositionScript = composePackage args;
|
||||||
pinpointDependenciesScript = pinpointDependenciesOfPackage args;
|
pinpointDependenciesScript = pinpointDependenciesOfPackage args;
|
||||||
|
|
||||||
passAsFile = [ "compositionScript" "pinpointDependenciesScript" ];
|
passAsFile = [ "compositionScript" "pinpointDependenciesScript" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = args.installPhase or ''
|
||||||
# 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
|
||||||
@ -417,47 +406,27 @@ let
|
|||||||
# Run post install hook, if provided
|
# Run post install hook, if provided
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
} // extraArgs);
|
});
|
||||||
|
|
||||||
# Builds a development shell
|
# Builds a development shell
|
||||||
buildNodeShell =
|
buildNodeShell = { name, packageName, version, src, dependencies ? [], production ? true, npmFlags ? "", dontNpmInstall ? false, bypassCache ? false, ... }@args:
|
||||||
{ name
|
|
||||||
, packageName
|
|
||||||
, version
|
|
||||||
, src
|
|
||||||
, dependencies ? []
|
|
||||||
, buildInputs ? []
|
|
||||||
, production ? true
|
|
||||||
, npmFlags ? ""
|
|
||||||
, dontNpmInstall ? false
|
|
||||||
, bypassCache ? false
|
|
||||||
, dontStrip ? true
|
|
||||||
, unpackPhase ? "true"
|
|
||||||
, buildPhase ? "true"
|
|
||||||
, ... }@args:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
forceOfflineFlag = if bypassCache then "--offline" else "--registry http://www.example.com";
|
forceOfflineFlag = if bypassCache then "--offline" else "--registry http://www.example.com";
|
||||||
|
|
||||||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ];
|
nodeDependencies = stdenv.mkDerivation {
|
||||||
|
|
||||||
nodeDependencies = stdenv.mkDerivation ({
|
|
||||||
name = "node-dependencies-${name}-${version}";
|
name = "node-dependencies-${name}-${version}";
|
||||||
|
|
||||||
buildInputs = [ tarWrapper python nodejs ]
|
buildInputs = [ tarWrapper python nodejs ]
|
||||||
++ stdenv.lib.optional (stdenv.isLinux) utillinux
|
++ stdenv.lib.optional (stdenv.isLinux) utillinux
|
||||||
++ stdenv.lib.optional (stdenv.isDarwin) libtool
|
++ stdenv.lib.optional (stdenv.isDarwin) libtool
|
||||||
++ buildInputs;
|
++ args.buildInputs or [];
|
||||||
|
|
||||||
inherit dontStrip; # Stripping may fail a build for some package deployments
|
|
||||||
inherit dontNpmInstall unpackPhase buildPhase;
|
|
||||||
|
|
||||||
includeScript = includeDependencies { inherit dependencies; };
|
includeScript = includeDependencies { inherit dependencies; };
|
||||||
pinpointDependenciesScript = pinpointDependenciesOfPackage args;
|
pinpointDependenciesScript = pinpointDependenciesOfPackage args;
|
||||||
|
|
||||||
passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
|
passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
|
||||||
|
|
||||||
installPhase = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/${packageName}
|
mkdir -p $out/${packageName}
|
||||||
cd $out/${packageName}
|
cd $out/${packageName}
|
||||||
|
|
||||||
@ -469,15 +438,13 @@ let
|
|||||||
${stdenv.lib.optionalString bypassCache ''
|
${stdenv.lib.optionalString bypassCache ''
|
||||||
if [ -f ${src}/package-lock.json ]
|
if [ -f ${src}/package-lock.json ]
|
||||||
then
|
then
|
||||||
cp ${src}/package-lock.json .
|
cp ${src}/package-lock.json .
|
||||||
fi
|
fi
|
||||||
''}
|
''}
|
||||||
|
|
||||||
# Pinpoint the versions of all dependencies to the ones that are actually being used
|
# Pinpoint the versions of all dependencies to the ones that are actually being used
|
||||||
echo "pinpointing versions of dependencies..."
|
echo "pinpointing versions of dependencies..."
|
||||||
cd ..
|
cd ..
|
||||||
${stdenv.lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
|
||||||
|
|
||||||
source $pinpointDependenciesScriptPath
|
source $pinpointDependenciesScriptPath
|
||||||
cd ${packageName}
|
cd ${packageName}
|
||||||
|
|
||||||
@ -507,17 +474,15 @@ let
|
|||||||
''}
|
''}
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
${stdenv.lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
|
||||||
|
|
||||||
mv ${packageName} lib
|
mv ${packageName} lib
|
||||||
ln -s $out/lib/node_modules/.bin $out/bin
|
ln -s $out/lib/node_modules/.bin $out/bin
|
||||||
'';
|
'';
|
||||||
} // extraArgs);
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.lib.makeOverridable stdenv.mkDerivation {
|
||||||
name = "node-shell-${name}-${version}";
|
name = "node-shell-${name}-${version}";
|
||||||
|
|
||||||
buildInputs = [ python nodejs ] ++ stdenv.lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
|
buildInputs = [ python nodejs ] ++ stdenv.lib.optional (stdenv.isLinux) utillinux ++ args.buildInputs or [];
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cat > $out/bin/shell <<EOF
|
cat > $out/bin/shell <<EOF
|
||||||
@ -535,8 +500,4 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{ inherit buildNodeSourceDist buildNodePackage buildNodeShell; }
|
||||||
buildNodeSourceDist = stdenv.lib.makeOverridable buildNodeSourceDist;
|
|
||||||
buildNodePackage = stdenv.lib.makeOverridable buildNodePackage;
|
|
||||||
buildNodeShell = stdenv.lib.makeOverridable buildNodeShell;
|
|
||||||
}
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# This file has been generated by node2nix 1.6.0. Do not edit!
|
# This file has been generated by node2nix 1.5.3. Do not edit!
|
||||||
|
|
||||||
{nodeEnv, fetchurl, fetchgit, globalBuildInputs ? []}:
|
{nodeEnv, fetchurl, fetchgit, globalBuildInputs ? []}:
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ let
|
|||||||
version = "1.1.1";
|
version = "1.1.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz";
|
url = "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz";
|
||||||
sha512 = "nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==";
|
sha512 = "38s4f3id97wsb0rg9nm9zvxyq0nvwrmrpa5dzvrkp36mf5ibs98b4z6lvsbrwzzs0sbcank6c7gpp06vcwp9acfhp41rzlhi3ybsxwy";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"balanced-match-1.0.0" = {
|
"balanced-match-1.0.0" = {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
version = "1.1.11";
|
version = "1.1.11";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz";
|
url = "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz";
|
||||||
sha512 = "iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==";
|
sha512 = "248cnpbbf0p32h53rd3g8wzpgrkaj4p078ra1g6l16f82i6bzkvmhwqan5rk88apbll9ly1476kngd7f7z27i3b3zxpbb3064f8yaw8";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"concat-map-0.0.1" = {
|
"concat-map-0.0.1" = {
|
||||||
@ -91,7 +91,7 @@ let
|
|||||||
version = "3.0.4";
|
version = "3.0.4";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz";
|
url = "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz";
|
||||||
sha512 = "yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==";
|
sha512 = "1879a3j85h92ypvb7lpv1dqpcxl49rqnbgs5la18zmj1yqhwl60c2m74254wbr5pp3znckqpkg9dvjyrz6hfz8b9vag5a3j910db4f8";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"nopt-3.0.6" = {
|
"nopt-3.0.6" = {
|
||||||
@ -157,7 +157,7 @@ in
|
|||||||
license = "MIT";
|
license = "MIT";
|
||||||
};
|
};
|
||||||
production = true;
|
production = true;
|
||||||
bypassCache = true;
|
bypassCache = false;
|
||||||
};
|
};
|
||||||
coffee-script = nodeEnv.buildNodePackage {
|
coffee-script = nodeEnv.buildNodePackage {
|
||||||
name = "coffee-script";
|
name = "coffee-script";
|
||||||
@ -165,7 +165,7 @@ in
|
|||||||
version = "1.12.7";
|
version = "1.12.7";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz";
|
url = "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz";
|
||||||
sha512 = "fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==";
|
sha512 = "29mq40padyvizg4f141b00p0p74hx9v06d7gxk84ggsiyw6rf5bb65gnfwk1i02r276jwqybmi5hx98s943slyazjnqd69jmj389dvw";
|
||||||
};
|
};
|
||||||
buildInputs = globalBuildInputs;
|
buildInputs = globalBuildInputs;
|
||||||
meta = {
|
meta = {
|
||||||
@ -174,7 +174,7 @@ in
|
|||||||
license = "MIT";
|
license = "MIT";
|
||||||
};
|
};
|
||||||
production = true;
|
production = true;
|
||||||
bypassCache = true;
|
bypassCache = false;
|
||||||
};
|
};
|
||||||
grunt-cli = nodeEnv.buildNodePackage {
|
grunt-cli = nodeEnv.buildNodePackage {
|
||||||
name = "grunt-cli";
|
name = "grunt-cli";
|
||||||
@ -185,21 +185,43 @@ in
|
|||||||
sha1 = "562b119ebb069ddb464ace2845501be97b35b6a8";
|
sha1 = "562b119ebb069ddb464ace2845501be97b35b6a8";
|
||||||
};
|
};
|
||||||
dependencies = [
|
dependencies = [
|
||||||
sources."abbrev-1.1.1"
|
(sources."findup-sync-0.3.0" // {
|
||||||
sources."balanced-match-1.0.0"
|
dependencies = [
|
||||||
sources."brace-expansion-1.1.11"
|
(sources."glob-5.0.15" // {
|
||||||
sources."concat-map-0.0.1"
|
dependencies = [
|
||||||
sources."findup-sync-0.3.0"
|
(sources."inflight-1.0.6" // {
|
||||||
sources."glob-5.0.15"
|
dependencies = [
|
||||||
|
sources."wrappy-1.0.2"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
sources."inherits-2.0.3"
|
||||||
|
(sources."minimatch-3.0.4" // {
|
||||||
|
dependencies = [
|
||||||
|
(sources."brace-expansion-1.1.11" // {
|
||||||
|
dependencies = [
|
||||||
|
sources."balanced-match-1.0.0"
|
||||||
|
sources."concat-map-0.0.1"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
})
|
||||||
|
(sources."once-1.4.0" // {
|
||||||
|
dependencies = [
|
||||||
|
sources."wrappy-1.0.2"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
sources."path-is-absolute-1.0.1"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
})
|
||||||
sources."grunt-known-options-1.1.0"
|
sources."grunt-known-options-1.1.0"
|
||||||
sources."inflight-1.0.6"
|
(sources."nopt-3.0.6" // {
|
||||||
sources."inherits-2.0.3"
|
dependencies = [
|
||||||
sources."minimatch-3.0.4"
|
sources."abbrev-1.1.1"
|
||||||
sources."nopt-3.0.6"
|
];
|
||||||
sources."once-1.4.0"
|
})
|
||||||
sources."path-is-absolute-1.0.1"
|
|
||||||
sources."resolve-1.1.7"
|
sources."resolve-1.1.7"
|
||||||
sources."wrappy-1.0.2"
|
|
||||||
];
|
];
|
||||||
buildInputs = globalBuildInputs;
|
buildInputs = globalBuildInputs;
|
||||||
meta = {
|
meta = {
|
||||||
@ -208,6 +230,6 @@ in
|
|||||||
license = "MIT";
|
license = "MIT";
|
||||||
};
|
};
|
||||||
production = true;
|
production = true;
|
||||||
bypassCache = true;
|
bypassCache = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user