diff options
author | Simon Weber <sweber2342@gmail.com> | 2021-11-27 19:54:27 +0100 |
---|---|---|
committer | Simon Weber <sweber2342@gmail.com> | 2021-12-05 16:45:32 +0100 |
commit | 6d1ca973c733c09d9e317136a0e24ebe7172e6bb (patch) | |
tree | 69d633cbb257b6c8ee8d33eee4fccb4be1926714 /pkgs | |
parent | 3507c8777462d1d7656c8ebb69636b96136abab4 (diff) |
zigbee2mqtt: transpile typescript in post install hook
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/zigbee2mqtt/default.nix | 4 | ||||
-rwxr-xr-x | pkgs/servers/zigbee2mqtt/update.sh | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/zigbee2mqtt/default.nix b/pkgs/servers/zigbee2mqtt/default.nix index 3de413f95019a..1a3a31e75cd4c 100644 --- a/pkgs/servers/zigbee2mqtt/default.nix +++ b/pkgs/servers/zigbee2mqtt/default.nix @@ -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; diff --git a/pkgs/servers/zigbee2mqtt/update.sh b/pkgs/servers/zigbee2mqtt/update.sh index f1caee633885a..df4ca62666311 100755 --- a/pkgs/servers/zigbee2mqtt/update.sh +++ b/pkgs/servers/zigbee2mqtt/update.sh @@ -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 \ |