summary refs log tree commit diff
path: root/pkgs/applications/networking/n8n
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-01-30 16:42:33 +0000
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-02-08 11:56:31 -0800
commit8d854f52eb3efa72144ecc3e4081b7a3c6487f03 (patch)
tree062facfc709de2f605a6d7c726697ba8c25f8d60 /pkgs/applications/networking/n8n
parent018997e2c2792caf4fcf407a1a7b9d8cc23ab8aa (diff)
downloadnixpkgs-8d854f52eb3efa72144ecc3e4081b7a3c6487f03.tar
nixpkgs-8d854f52eb3efa72144ecc3e4081b7a3c6487f03.tar.gz
nixpkgs-8d854f52eb3efa72144ecc3e4081b7a3c6487f03.tar.bz2
nixpkgs-8d854f52eb3efa72144ecc3e4081b7a3c6487f03.tar.lz
nixpkgs-8d854f52eb3efa72144ecc3e4081b7a3c6487f03.tar.xz
nixpkgs-8d854f52eb3efa72144ecc3e4081b7a3c6487f03.tar.zst
nixpkgs-8d854f52eb3efa72144ecc3e4081b7a3c6487f03.zip
n8n: register updateScript
Diffstat (limited to 'pkgs/applications/networking/n8n')
-rw-r--r--pkgs/applications/networking/n8n/default.nix2
-rwxr-xr-xpkgs/applications/networking/n8n/generate-dependencies.sh1
2 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/networking/n8n/default.nix b/pkgs/applications/networking/n8n/default.nix
index d882134473b..e7e1be095a2 100644
--- a/pkgs/applications/networking/n8n/default.nix
+++ b/pkgs/applications/networking/n8n/default.nix
@@ -12,6 +12,8 @@ nodePackages.n8n.override {
     node-pre-gyp
   ];
 
+  passthru.updateScript = ./generate-dependencies.sh;
+
   meta = with lib; {
     description = "Free and open fair-code licensed node based Workflow Automation Tool";
     maintainers = with maintainers; [ freezeboy k900 ];
diff --git a/pkgs/applications/networking/n8n/generate-dependencies.sh b/pkgs/applications/networking/n8n/generate-dependencies.sh
index 26926deefb6..f7412bc5e5e 100755
--- a/pkgs/applications/networking/n8n/generate-dependencies.sh
+++ b/pkgs/applications/networking/n8n/generate-dependencies.sh
@@ -10,6 +10,7 @@
 #          -> cpu-features
 #             -> node-gyp@3.8.0 -> python2
 #             -> cmake
+cd "$(dirname $(readlink -f $0))"
 
 node2nix \
   --14 \