nixpkgs/pkgs/servers/zigbee2mqtt/deps.sh
2020-07-20 21:47:48 +02:00

16 lines
445 B
Bash
Executable File

#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix nodejs-12_x
VERSION=1.14.1
ZIGBEE2MQTT=https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/$VERSION
wget $ZIGBEE2MQTT/package.json
wget $ZIGBEE2MQTT/npm-shrinkwrap.json
node2nix --nodejs-12 \
-l npm-shrinkwrap.json \
-c node.nix \
--bypass-cache \
--no-copy-node-env \
--node-env ../../development/node-packages/node-env.nix
rm package.json npm-shrinkwrap.json