3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/n8n/generate-dependencies.sh

22 lines
513 B
Bash
Raw Normal View History

2020-11-28 16:59:45 +00:00
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix
# --strip-optional-dependencies to get rid of deprecated build deps:
#
# n8n
# -> n8n-nodes-base
# -> ssh2-sftp-client
# -> ssh2
# -> cpu-features
# -> node-gyp@3.8.0 -> python2
# -> cmake
2022-01-30 16:42:33 +00:00
cd "$(dirname $(readlink -f $0))"
2020-11-28 16:59:45 +00:00
node2nix \
--14 \
--strip-optional-dependencies \
2020-11-28 16:59:45 +00:00
--node-env node-env.nix \
--input package.json \
--output node-packages.nix \
--composition node-composition.nix