686ce24904
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ pkgs, nodejs-16_x, stdenv, lib, nixosTests }:
|
|
|
|
let
|
|
nodePackages = import ./node-composition.nix {
|
|
inherit pkgs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
};
|
|
in
|
|
nodePackages.n8n.override {
|
|
nativeBuildInputs = [
|
|
pkgs.nodePackages.node-pre-gyp
|
|
];
|
|
|
|
buildInputs = [
|
|
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 ''
|
|
rm -rf node_modules/oracledb
|
|
'';
|
|
|
|
dontNpmInstall = true;
|
|
|
|
passthru = {
|
|
updateScript = ./generate-dependencies.sh;
|
|
tests = nixosTests.n8n;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.";
|
|
maintainers = with maintainers; [ freezeboy k900 ];
|
|
license = {
|
|
fullName = "Sustainable Use License";
|
|
url = "https://github.com/n8n-io/n8n/blob/master/LICENSE.md";
|
|
free = false;
|
|
# only free to redistribute "for non-commercial purposes"
|
|
redistributable = false;
|
|
};
|
|
};
|
|
}
|