summary refs log tree commit diff
path: root/pkgs/applications/networking/n8n/generate-dependencies.sh
blob: f7412bc5e5e26a9076b6c3bf5660ed78f41baab9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
cd "$(dirname $(readlink -f $0))"

node2nix \
  --14 \
  --strip-optional-dependencies \
  --node-env node-env.nix \
  --input package.json \
  --output node-packages.nix \
  --composition node-composition.nix