From 8224781cb033bcdbec76b75840dee55678e489ad Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 21 Sep 2022 17:10:25 +0200 Subject: [PATCH] matrix-appservice-discord: remove references to node-sources --- pkgs/servers/matrix-appservice-discord/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/matrix-appservice-discord/default.nix b/pkgs/servers/matrix-appservice-discord/default.nix index bc8b183ad8e4..e0ff4c2ac114 100644 --- a/pkgs/servers/matrix-appservice-discord/default.nix +++ b/pkgs/servers/matrix-appservice-discord/default.nix @@ -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}" {} \; ''; }; };