mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 07:04:25 +00:00
matrix-appservice-discord: remove references to node-sources
This commit is contained in:
parent
1ef96c2f24
commit
8224781cb0
@ -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";
|
assert lib.versionAtLeast nodejs.version "12.0.0";
|
||||||
|
|
||||||
@ -30,6 +30,7 @@ in mkYarnPackage rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
# build native sqlite bindings
|
# build native sqlite bindings
|
||||||
npm run build-release --offline --nodedir="${nodeSources}"
|
npm run build-release --offline --nodedir="${nodeSources}"
|
||||||
|
find build -type f -exec ${removeReferencesTo}/bin/remove-references-to -t "${nodeSources}" {} \;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user