yarn2nix: allow running scripts
This commit is contained in:
parent
b7fddb65f4
commit
95567a1283
1 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,6 @@ in rec {
|
||||||
"--offline"
|
"--offline"
|
||||||
"--frozen-lockfile"
|
"--frozen-lockfile"
|
||||||
"--ignore-engines"
|
"--ignore-engines"
|
||||||
"--ignore-scripts"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
mkYarnModules = {
|
mkYarnModules = {
|
||||||
|
@ -70,6 +69,7 @@ in rec {
|
||||||
yarnNix ? mkYarnNix { inherit yarnLock; },
|
yarnNix ? mkYarnNix { inherit yarnLock; },
|
||||||
offlineCache ? importOfflineCache yarnNix,
|
offlineCache ? importOfflineCache yarnNix,
|
||||||
yarnFlags ? [ ],
|
yarnFlags ? [ ],
|
||||||
|
ignoreScripts ? true,
|
||||||
pkgConfig ? {},
|
pkgConfig ? {},
|
||||||
preBuild ? "",
|
preBuild ? "",
|
||||||
postBuild ? "",
|
postBuild ? "",
|
||||||
|
@ -141,7 +141,7 @@ in rec {
|
||||||
|
|
||||||
${workspaceDependencyLinks}
|
${workspaceDependencyLinks}
|
||||||
|
|
||||||
yarn install ${lib.escapeShellArgs (defaultYarnFlags ++ yarnFlags)}
|
yarn install ${lib.escapeShellArgs (defaultYarnFlags ++ lib.optional ignoreScripts "--ignore-scripts" ++ yarnFlags)}
|
||||||
|
|
||||||
${lib.concatStringsSep "\n" postInstall}
|
${lib.concatStringsSep "\n" postInstall}
|
||||||
|
|
||||||
|
@ -413,7 +413,7 @@ in rec {
|
||||||
# we import package.json from the unfiltered source
|
# we import package.json from the unfiltered source
|
||||||
packageJSON = ./package.json;
|
packageJSON = ./package.json;
|
||||||
|
|
||||||
yarnFlags = defaultYarnFlags ++ ["--production=true"];
|
yarnFlags = defaultYarnFlags ++ [ "--ignore-scripts" "--production=true" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue