summary refs log tree commit diff
path: root/pkgs/development/tools/yarn2nix-moretea/yarn2nix
diff options
context:
space:
mode:
authorAdam Avramov <adam.b.avramov@gmail.com>2020-10-24 03:34:00 +0200
committerAdam Avramov <my.new@email.here>2020-12-08 23:54:40 +0100
commit4ef1e5b8de3831c566806312f74a38e82306eb07 (patch)
tree33f428187ea35e25b30f508043f2d3aabae57cf8 /pkgs/development/tools/yarn2nix-moretea/yarn2nix
parentce89dd6819805b5dfdcbdadb1b896680af7e30b6 (diff)
downloadnixpkgs-4ef1e5b8de3831c566806312f74a38e82306eb07.tar
nixpkgs-4ef1e5b8de3831c566806312f74a38e82306eb07.tar.gz
nixpkgs-4ef1e5b8de3831c566806312f74a38e82306eb07.tar.bz2
nixpkgs-4ef1e5b8de3831c566806312f74a38e82306eb07.tar.lz
nixpkgs-4ef1e5b8de3831c566806312f74a38e82306eb07.tar.xz
nixpkgs-4ef1e5b8de3831c566806312f74a38e82306eb07.tar.zst
nixpkgs-4ef1e5b8de3831c566806312f74a38e82306eb07.zip
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;).
Diffstat (limited to 'pkgs/development/tools/yarn2nix-moretea/yarn2nix')
-rw-r--r--pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix
index 89bc169d503..3372ddce3aa 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;
       };