From bd50b5fcf5bd8b14a58beb96d92efeb3e455a965 Mon Sep 17 00:00:00 2001 From: Isa Date: Mon, 7 Aug 2023 19:49:48 +0200 Subject: [PATCH] graylog-5_1: init at 5.1.4 --- nixos/modules/services/logging/graylog.nix | 4 ++-- pkgs/tools/misc/graylog/5.1.nix | 9 +++++++++ pkgs/tools/misc/graylog/plugins.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 ++ 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 pkgs/tools/misc/graylog/5.1.nix diff --git a/nixos/modules/services/logging/graylog.nix b/nixos/modules/services/logging/graylog.nix index 1eb51c50ff79..673930c4cb5c 100644 --- a/nixos/modules/services/logging/graylog.nix +++ b/nixos/modules/services/logging/graylog.nix @@ -37,8 +37,8 @@ in package = mkOption { type = types.package; - default = if versionOlder config.system.stateVersion "23.05" then pkgs.graylog-3_3 else pkgs.graylog-5_0; - defaultText = literalExpression (if versionOlder config.system.stateVersion "23.05" then "pkgs.graylog-3_3" else "pkgs.graylog-5_0"); + default = if versionOlder config.system.stateVersion "23.05" then pkgs.graylog-3_3 else pkgs.graylog-5_1; + defaultText = literalExpression (if versionOlder config.system.stateVersion "23.05" then "pkgs.graylog-3_3" else "pkgs.graylog-5_1"); description = lib.mdDoc "Graylog package to use."; }; diff --git a/pkgs/tools/misc/graylog/5.1.nix b/pkgs/tools/misc/graylog/5.1.nix new file mode 100644 index 000000000000..3dc849eaeec7 --- /dev/null +++ b/pkgs/tools/misc/graylog/5.1.nix @@ -0,0 +1,9 @@ +{ callPackage, lib, ...}: +let + buildGraylog = callPackage ./graylog.nix {}; +in buildGraylog { + version = "5.1.4"; + sha256 = "sha256-ZuzmNbc+qB6oYCnR5iAsSEQGTB+pk+ghF0/+O3BTLkA="; + maintainers = [ lib.maintainers.f2k1de ]; + license = lib.licenses.sspl; +} diff --git a/pkgs/tools/misc/graylog/plugins.nix b/pkgs/tools/misc/graylog/plugins.nix index 27d555afcf24..8601d2c6e805 100644 --- a/pkgs/tools/misc/graylog/plugins.nix +++ b/pkgs/tools/misc/graylog/plugins.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, unzip, graylog-5_0 }: +{ lib, stdenv, fetchurl, unzip, graylog-5_1 }: with lib; @@ -17,7 +17,7 @@ let dontUnpack = true; nativeBuildInputs = [ unzip ]; meta = a.meta // { - platforms = graylog-5_0.meta.platforms; + platforms = graylog-5_1.meta.platforms; maintainers = (a.meta.maintainers or []) ++ [ maintainers.fadenb ]; sourceProvenance = with sourceTypes; [ binaryBytecode ]; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 86a49cf828e1..f367feafebe8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8622,6 +8622,8 @@ with pkgs; graylog-5_0 = callPackage ../tools/misc/graylog/5.0.nix { }; + graylog-5_1 = callPackage ../tools/misc/graylog/5.1.nix { }; + graylogPlugins = recurseIntoAttrs ( callPackage ../tools/misc/graylog/plugins.nix { } );