From 95567a1283e61c86cd4ef3c9aaad81ba6a7a72eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 1 Nov 2022 14:27:02 +0100 Subject: [PATCH] yarn2nix: allow running scripts --- .../development/tools/yarn2nix-moretea/yarn2nix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix index 309be805cf81..76d1df8be645 100644 --- a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix +++ b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix @@ -58,7 +58,6 @@ in rec { "--offline" "--frozen-lockfile" "--ignore-engines" - "--ignore-scripts" ]; mkYarnModules = { @@ -70,6 +69,7 @@ in rec { yarnNix ? mkYarnNix { inherit yarnLock; }, offlineCache ? importOfflineCache yarnNix, yarnFlags ? [ ], + ignoreScripts ? true, pkgConfig ? {}, preBuild ? "", postBuild ? "", @@ -141,7 +141,7 @@ in rec { ${workspaceDependencyLinks} - yarn install ${lib.escapeShellArgs (defaultYarnFlags ++ yarnFlags)} + yarn install ${lib.escapeShellArgs (defaultYarnFlags ++ lib.optional ignoreScripts "--ignore-scripts" ++ yarnFlags)} ${lib.concatStringsSep "\n" postInstall} @@ -413,7 +413,7 @@ in rec { # we import package.json from the unfiltered source packageJSON = ./package.json; - yarnFlags = defaultYarnFlags ++ ["--production=true"]; + yarnFlags = defaultYarnFlags ++ [ "--ignore-scripts" "--production=true" ]; nativeBuildInputs = [ pkgs.makeWrapper ];