From ace8036177ab3ff31ec32a571a153e77b58f8fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 21 Dec 2025 01:43:42 +0100 Subject: [PATCH] concurrently: remove unnecessary and non-deterministic files --- pkgs/by-name/co/concurrently/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/co/concurrently/package.nix b/pkgs/by-name/co/concurrently/package.nix index 53a929890bce..cfaaebbbba5e 100644 --- a/pkgs/by-name/co/concurrently/package.nix +++ b/pkgs/by-name/co/concurrently/package.nix @@ -47,6 +47,17 @@ stdenv.mkDerivation (finalAttrs: { runHook postBuild ''; + preInstall = '' + # remove unnecessary files + CI=true pnpm --ignore-scripts --prod prune + find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} + + # https://github.com/pnpm/pnpm/issues/3645 + find node_modules -xtype l -delete + + # remove non-deterministic files + rm node_modules/{.modules.yaml,.pnpm-workspace-state-v1.json} + ''; + installPhase = '' runHook preInstall