nixpkgs/pkgs/applications/networking/n8n/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.3 KiB
Nix
Raw Normal View History

2023-04-28 15:40:54 +00:00
{ pkgs, stdenv, lib, nixosTests }:
2020-11-28 16:59:45 +00:00
let
nodePackages = import ./node-composition.nix {
inherit pkgs;
2020-11-28 16:59:45 +00:00
inherit (stdenv.hostPlatform) system;
};
in
nodePackages.n8n.override {
2022-10-10 15:26:54 +00:00
nativeBuildInputs = [
pkgs.nodePackages.node-pre-gyp
2020-11-28 16:59:45 +00:00
];
2022-10-10 15:26:54 +00:00
buildInputs = [
pkgs.postgresql
2023-04-28 15:40:54 +00:00
pkgs.libmongocrypt
2022-10-10 15:26:54 +00:00
];
# 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.
2023-02-10 18:11:20 +00:00
preRebuild = lib.optionalString stdenv.isAarch64 ''
rm -rf node_modules/oracledb
'';
2023-04-28 15:40:54 +00:00
# makes libmongocrypt bindings not look for static libraries in completely wrong places
BUILD_TYPE = "dynamic";
2022-10-10 15:26:54 +00:00
dontNpmInstall = true;
2022-05-06 14:09:52 +00:00
passthru = {
updateScript = ./generate-dependencies.sh;
tests = nixosTests.n8n;
};
2022-01-30 16:42:33 +00:00
2020-11-28 16:59:45 +00:00
meta = with lib; {
2022-12-28 19:42:55 +00:00
description = "Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.";
maintainers = with maintainers; [ freezeboy k900 ];
license = licenses.sustainableUse;
2020-11-28 16:59:45 +00:00
};
}