Commit 8224781c authored by Max's avatar Max
Browse files

matrix-appservice-discord: remove references to node-sources

parent 1ef96c2f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
{ 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}" {} \;
     '';
    };
  };