2020-11-28 17:59:45 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash -p nodePackages.node2nix
|
|
|
|
|
2022-01-08 20:44:46 +01:00
|
|
|
# --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 17:42:33 +01:00
|
|
|
cd "$(dirname $(readlink -f $0))"
|
2022-01-08 20:44:46 +01:00
|
|
|
|
2020-11-28 17:59:45 +01:00
|
|
|
node2nix \
|
2023-05-21 17:08:45 +02:00
|
|
|
--nodejs-18 \
|
2022-01-08 20:44:46 +01:00
|
|
|
--strip-optional-dependencies \
|
2020-11-28 17:59:45 +01:00
|
|
|
--node-env node-env.nix \
|
|
|
|
--input package.json \
|
|
|
|
--output node-packages.nix \
|
|
|
|
--composition node-composition.nix
|