From 18d4826508002d316fa791f40eb3049b6d2ad568 Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Fri, 12 Dec 2025 11:44:41 +0000 Subject: [PATCH] umami: skip pnpmDeps from other platforms When fetching dependencies for all platforms (default for pnpm.fetchDeps) the pnpmDeps derivation size increases to over 4GiB, which is above the limit allowed by Hydra, failing the build there. This commit removes the `--force` flag when executing `pnpm install`, so only dependencies for the current platform are fetched and installed. --- pkgs/by-name/um/umami/package.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/um/umami/package.nix b/pkgs/by-name/um/umami/package.nix index 9042e1e5d3d3..e8c7c978287a 100644 --- a/pkgs/by-name/um/umami/package.nix +++ b/pkgs/by-name/um/umami/package.nix @@ -87,18 +87,24 @@ stdenvNoCC.mkDerivation (finalAttrs: { hash = "sha256-rkOD52suE6bihJqKvMdIvqHRIcWhSxXzUkCfmdNbC40="; }; - # install dev dependencies as well, for rollup - pnpmInstallFlags = [ "--prod=false" ]; - pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname - pnpmInstallFlags version src ; + # prevent downloading dependencies for windows + # which bloat derivation size and fail to build on hydra + # https://github.com/NixOS/nixpkgs/pull/467820#issuecomment-3624054271 + pnpmInstallFlags = [ + "--force=false" + "--os=linux" + "--os=darwin" + "--cpu=x64" + "--cpu=arm64" + ]; fetcherVersion = 2; - hash = "sha256-eXurT8kfVJcJoFunrt7h8LKuhsIhGrYDW6shvGA6GXY="; + hash = "sha256-bqeJ0wzCtnuR6V67Qe1N9UcaHPLziuBhsn7eN8JVJbQ="; }; env.CYPRESS_INSTALL_BINARY = "0";