diff --git a/pkgs/by-name/n8/n8n/package.nix b/pkgs/by-name/n8/n8n/package.nix index 248933811cfaaf..6ab49484fc3fc5 100644 --- a/pkgs/by-name/n8/n8n/package.nix +++ b/pkgs/by-name/n8/n8n/package.nix @@ -58,13 +58,16 @@ stdenv.mkDerivation (finalAttrs: { ''; preInstall = '' - echo "Removing non-deterministic files" + echo "Removing non-deterministic and unnecessary files" - rm -r $(find -type d -name .turbo) + find -type d -name .turbo -exec rm -rf {} + rm node_modules/.modules.yaml rm packages/nodes-base/dist/types/nodes.json - echo "Removed non-deterministic files" + find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} + + rm -rf node_modules/.pnpm/{@biomejs*,@rollup*,rollup*,turbo*,@iconify*,@faker*,@esbuild*,typescript*,prettier*,*eslint*} + + echo "Removed non-deterministic and unnecessary files" ''; installPhase = ''