zigbee2mqtt: transpile typescript in post install hook

This commit is contained in:
Simon Weber 2021-11-27 19:54:27 +01:00
parent 3507c87774
commit 6d1ca973c7
2 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,10 @@ package.override rec {
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
postInstall = ''
npm run build
'';
meta = with pkgs.lib; {
description = "Zigbee to MQTT bridge using zigbee-shepherd";
license = licenses.gpl3;

View File

@ -18,6 +18,7 @@ curl -LO $ZIGBEE2MQTT/npm-shrinkwrap.json
node2nix \
--composition node.nix \
--lock npm-shrinkwrap.json \
--development \
--no-copy-node-env \
--node-env ../../development/node-packages/node-env.nix \
--nodejs-14 \