Fix 'argument list too long' during build
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
# This file is generated by running "yarn install" inside your project.
|
# This file is generated by running "yarn install" inside your project.
|
||||||
# Manual changes might be lost - proceed with caution!
|
# Manual changes might be lost - proceed with caution!
|
||||||
|
|
||||||
{ lib, coreutils, nodejs, stdenv }: src:
|
{ lib, coreutils, nodejs, stdenv, writeText }: src:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
@@ -28,9 +28,11 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Shell snippet to collect all project dependencies.
|
# Shell snippet to collect all project dependencies.
|
||||||
collectCache = lib.concatMapStrings (args: ''
|
collectCacheScript = writeText "collect-cache.sh" (
|
||||||
|
lib.concatMapStrings (args: ''
|
||||||
cp ${fetchOne args} '${args.filename}'
|
cp ${fetchOne args} '${args.filename}'
|
||||||
'') cacheEntries;
|
'') cacheEntries
|
||||||
|
);
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = @@PROJECT_NAME@@;
|
name = @@PROJECT_NAME@@;
|
||||||
@@ -60,7 +62,7 @@ in stdenv.mkDerivation {
|
|||||||
rm -fr '${cacheFolder}'
|
rm -fr '${cacheFolder}'
|
||||||
mkdir -p '${cacheFolder}'
|
mkdir -p '${cacheFolder}'
|
||||||
pushd '${cacheFolder}' > /dev/null
|
pushd '${cacheFolder}' > /dev/null
|
||||||
${collectCache}
|
source ${collectCacheScript}
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
# Store the absolute path to Yarn for the 'yarn' alias.
|
# Store the absolute path to Yarn for the 'yarn' alias.
|
||||||
|
|||||||
Reference in New Issue
Block a user