pnpm_{8,9}: remove uneeded binary files from src

This commit is contained in:
Doron Behar 2024-06-03 16:02:45 +03:00
parent b692500229
commit 711884c566

View File

@ -17,6 +17,11 @@
url = "https://registry.npmjs.org/pnpm/-/pnpm-${finalAttrs.version}.tgz";
inherit hash;
};
# Remove binary files from src, we don't need them, and this way we make sure
# our distribution is free of binaryNativeCode
preConfigure = ''
rm -r dist/reflink.*node dist/vendor
'';
buildInputs = lib.optionals withNode [ nodejs ];