From 4ef1e5b8de3831c566806312f74a38e82306eb07 Mon Sep 17 00:00:00 2001 From: Adam Avramov Date: Sat, 24 Oct 2020 03:34:00 +0200 Subject: [PATCH] yarn2nix: expose yarnPostBuild The way I see it, there's no point in the argument being there if it can't be used. Right now its lack currently prevents a workaround for an issue I can't wrap my head around - first encountered [here](https://logs.nix.samueldr.com/nixos-dev/2019-08-28#2532857;). --- pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix index 89bc169d5038..3372ddce3aaa 100644 --- a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix +++ b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix @@ -228,6 +228,7 @@ in rec { yarnNix ? mkYarnNix { inherit yarnLock; }, yarnFlags ? defaultYarnFlags, yarnPreBuild ? "", + yarnPostBuild ? "", pkgConfig ? {}, extraBuildInputs ? [], publishBinsFor ? null, @@ -249,6 +250,7 @@ in rec { deps = mkYarnModules { name = "${safeName}-modules-${version}"; preBuild = yarnPreBuild; + postBuild = yarnPostBuild; workspaceDependencies = workspaceDependenciesTransitive; inherit packageJSON pname version yarnLock yarnNix yarnFlags pkgConfig; };