From c084f7ca7b220a189c7fdc1c2ca20d646af7b465 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 21 Sep 2022 19:39:02 +0200 Subject: [PATCH] packages/uptime-kuma: reduce closure size --- packages/dream2nix-overrides/nodejs/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/dream2nix-overrides/nodejs/default.nix b/packages/dream2nix-overrides/nodejs/default.nix index 5e39d95..62f3f2d 100644 --- a/packages/dream2nix-overrides/nodejs/default.nix +++ b/packages/dream2nix-overrides/nodejs/default.nix @@ -86,4 +86,11 @@ in --set NODE_PATH "$out/lib/node_modules/uptime-kuma/node_modules" ''; }; + + "@louislam/sqlite3".closure-bloat = { + postFixup = '' + rm -rf build-*/ + find $out -type d -name '*-node-addon-api-*' -print0 | xargs -0 rm -rf + ''; + }; }