Merge pull request #192266 from max-privatevoid/pr-matrix-appservice-discord-closure-bloat

matrix-appservice-discord: remove references to node-sources
This commit is contained in:
Christian Kögler 2022-10-31 22:12:41 +01:00 committed by GitHub
commit 44a6dcf834
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, mkYarnPackage, fetchFromGitHub, runCommand, makeWrapper, python3, nodejs }:
{ lib, mkYarnPackage, fetchFromGitHub, runCommand, makeWrapper, python3, nodejs, removeReferencesTo }:
assert lib.versionAtLeast nodejs.version "12.0.0";
@ -30,6 +30,7 @@ in mkYarnPackage rec {
postInstall = ''
# build native sqlite bindings
npm run build-release --offline --nodedir="${nodeSources}"
find build -type f -exec ${removeReferencesTo}/bin/remove-references-to -t "${nodeSources}" {} \;
'';
};
};