diff options
author | Gutyina Gergő <gutyina.gergo.2@gmail.com> | 2024-05-21 17:15:21 +0200 |
---|---|---|
committer | Gutyina Gergő <gutyina.gergo.2@gmail.com> | 2024-05-21 23:47:13 +0200 |
commit | abbb4a7e2795852dca65da51734d142c2d0d98f4 (patch) | |
tree | d69b4ea53f04821c972474cd40390ad31ba9db42 /pkgs/applications/networking/n8n | |
parent | 6c0b7a92c30122196a761b440ac0d46d3d9954f1 (diff) |
n8n: fix aarch64 build
Diffstat (limited to 'pkgs/applications/networking/n8n')
-rw-r--r-- | pkgs/applications/networking/n8n/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/applications/networking/n8n/default.nix b/pkgs/applications/networking/n8n/default.nix index 7677abfb0ccf3..2fb3c47aa8f7c 100644 --- a/pkgs/applications/networking/n8n/default.nix +++ b/pkgs/applications/networking/n8n/default.nix @@ -19,13 +19,17 @@ nodePackages.n8n.override { pkgs.postgresql ]; - # Oracle's official package on npm is binary only (WHY?!) and doesn't provide binaries for aarch64. - # This can supposedly be fixed by building a custom copy of the module from source, but that's way - # too much complexity for a setup no one would ever actually run. - # - # NB: If you _are_ actually running n8n on Oracle on aarch64, feel free to submit a patch. preRebuild = lib.optionalString stdenv.isAarch64 '' + # Oracle's official package on npm is binary only (WHY?!) and doesn't provide binaries for aarch64. + # This can supposedly be fixed by building a custom copy of the module from source, but that's way + # too much complexity for a setup no one would ever actually run. + # + # NB: If you _are_ actually running n8n on Oracle on aarch64, feel free to submit a patch. rm -rf node_modules/oracledb + + # This package tries to load a prebuilt binary for a different arch, and it doesn't provide the binary for aarch64. + # It is marked as an optional dependency in pnpm-lock.yaml and there are no other references to it n8n. + rm -rf node_modules/@sap/hana-client ''; # makes libmongocrypt bindings not look for static libraries in completely wrong places |