node2nix: 1.3.0 -> 1.4.0 + regenerate packages
This commit is contained in:
parent
94043f511a
commit
5e563ae749
@ -1,4 +1,4 @@
|
|||||||
# This file has been generated by node2nix 1.3.0. Do not edit!
|
# This file has been generated by node2nix 1.4.0. 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.3.0. Do not edit!
|
# This file has been generated by node2nix 1.4.0. Do not edit!
|
||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
{pkgs ? import <nixpkgs> {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -291,27 +291,27 @@ let
|
|||||||
passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
|
passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/${packageName}
|
||||||
cd $out/lib
|
cd $out/${packageName}
|
||||||
|
|
||||||
source $includeScriptPath
|
source $includeScriptPath
|
||||||
|
|
||||||
|
# Create fake package.json to make the npm commands work properly
|
||||||
|
cp ${src}/package.json .
|
||||||
|
chmod 644 package.json
|
||||||
|
|
||||||
# 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 ..
|
||||||
source $pinpointDependenciesScriptPath
|
source $pinpointDependenciesScriptPath
|
||||||
|
cd ${packageName}
|
||||||
# Create fake package.json to make the npm commands work properly
|
|
||||||
cat > package.json <<EOF
|
|
||||||
{
|
|
||||||
"name": "${packageName}",
|
|
||||||
"version": "${version}"
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Patch the shebangs of the bundled modules to prevent them from
|
# Patch the shebangs of the bundled modules to prevent them from
|
||||||
# calling executables outside the Nix store as much as possible
|
# calling executables outside the Nix store as much as possible
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
|
|
||||||
export HOME=$PWD
|
export HOME=$PWD
|
||||||
|
|
||||||
npm --registry http://www.example.com --nodedir=${nodeSources} ${npmFlags} ${stdenv.lib.optionalString production "--production"} rebuild
|
npm --registry http://www.example.com --nodedir=${nodeSources} ${npmFlags} ${stdenv.lib.optionalString production "--production"} rebuild
|
||||||
|
|
||||||
${stdenv.lib.optionalString (!dontNpmInstall) ''
|
${stdenv.lib.optionalString (!dontNpmInstall) ''
|
||||||
@ -321,6 +321,8 @@ let
|
|||||||
npm --registry http://www.example.com --nodedir=${nodeSources} ${npmFlags} ${stdenv.lib.optionalString production "--production"} install
|
npm --registry http://www.example.com --nodedir=${nodeSources} ${npmFlags} ${stdenv.lib.optionalString production "--production"} install
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
mv ${packageName} lib
|
||||||
ln -s $out/lib/node_modules/.bin $out/bin
|
ln -s $out/lib/node_modules/.bin $out/bin
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user