diff options
author | Isa <hi@f2k1.de> | 2023-04-24 16:34:54 +0200 |
---|---|---|
committer | Isa <hi@f2k1.de> | 2023-05-12 20:16:05 +0200 |
commit | efbcbc56117ce738227e54fadc147f349ac8892c (patch) | |
tree | 57ddedc22791e9b8ea26fc3a7ca0764c64aa0a30 | |
parent | 4a5817c44a62c415ce3ec24ff832d12108805012 (diff) | |
download | nixpkgs-efbcbc56117ce738227e54fadc147f349ac8892c.tar nixpkgs-efbcbc56117ce738227e54fadc147f349ac8892c.tar.gz nixpkgs-efbcbc56117ce738227e54fadc147f349ac8892c.tar.bz2 nixpkgs-efbcbc56117ce738227e54fadc147f349ac8892c.tar.lz nixpkgs-efbcbc56117ce738227e54fadc147f349ac8892c.tar.xz nixpkgs-efbcbc56117ce738227e54fadc147f349ac8892c.tar.zst nixpkgs-efbcbc56117ce738227e54fadc147f349ac8892c.zip |
graylog: init at 4.0.8, 4.3.8, 5.0.6
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2305.section.md | 2 | ||||
-rw-r--r-- | pkgs/tools/misc/graylog/3.3.nix | 9 | ||||
-rw-r--r-- | pkgs/tools/misc/graylog/4.0.nix | 9 | ||||
-rw-r--r-- | pkgs/tools/misc/graylog/4.3.nix | 9 | ||||
-rw-r--r-- | pkgs/tools/misc/graylog/5.0.nix | 9 | ||||
-rw-r--r-- | pkgs/tools/misc/graylog/default.nix | 35 | ||||
-rw-r--r-- | pkgs/tools/misc/graylog/graylog.nix | 41 | ||||
-rw-r--r-- | pkgs/tools/misc/graylog/plugins.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 9 |
9 files changed, 89 insertions, 38 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md index a89c46152ca..8dce6ba19a4 100644 --- a/nixos/doc/manual/release-notes/rl-2305.section.md +++ b/nixos/doc/manual/release-notes/rl-2305.section.md @@ -143,6 +143,8 @@ In addition to numerous new and upgraded packages, this release has the followin - `git-bug` has been updated to at least version 0.8.0, which includes backwards incompatible changes. The `git-bug-migration` package can be used to upgrade existing repositories. +- `graylog` has been updated to version 5, which can not be upgraded directly from the previously packaged version 3.3. If you had installed the previously packaged version 3.3, please follow the [upgrade path](https://go2docs.graylog.org/5-0/upgrading_graylog/upgrade_path.htm) from 3.3 to 4.0 to 4.3 to 5.0. + - `nushell` has been updated to at least version 0.77.0, which includes potential breaking changes in aliases. The old aliases are now available as `old-alias` but it is recommended you migrate to the new format. See [Reworked aliases](https://www.nushell.sh/blog/2023-03-14-nushell_0_77.html#reworked-aliases-breaking-changes-kubouch). - `keepassx` and `keepassx2` have been removed, due to upstream [stopping development](https://www.keepassx.org/index.html%3Fp=636.html). Consider [KeePassXC](https://keepassxc.org) as a maintained alternative. diff --git a/pkgs/tools/misc/graylog/3.3.nix b/pkgs/tools/misc/graylog/3.3.nix new file mode 100644 index 00000000000..fc93b9fc582 --- /dev/null +++ b/pkgs/tools/misc/graylog/3.3.nix @@ -0,0 +1,9 @@ +{ callPackage, lib }: +let + buildGraylog = callPackage ./graylog.nix {}; +in buildGraylog { + version = "3.3.16"; + sha256 = "sha256-P/cnfYKnMSnDD4otEyirKlLaFduyfSO9sao4BY3c3Z4="; + maintainers = [ lib.maintainers.fadenb ]; + license = lib.licenses.gpl3; +} diff --git a/pkgs/tools/misc/graylog/4.0.nix b/pkgs/tools/misc/graylog/4.0.nix new file mode 100644 index 00000000000..cae23dd431d --- /dev/null +++ b/pkgs/tools/misc/graylog/4.0.nix @@ -0,0 +1,9 @@ +{ callPackage, lib, ...}: +let + buildGraylog = callPackage ./graylog.nix {}; +in buildGraylog { + version = "4.0.8"; + sha256 = "sha256-1JlJNJSU1wJiztLhYD87YM/7p3YCBXBKerEo/xfumUg="; + maintainers = [ lib.maintainers.f2k1de ]; + license = lib.licenses.sspl; +} diff --git a/pkgs/tools/misc/graylog/4.3.nix b/pkgs/tools/misc/graylog/4.3.nix new file mode 100644 index 00000000000..1bd2ed3ec70 --- /dev/null +++ b/pkgs/tools/misc/graylog/4.3.nix @@ -0,0 +1,9 @@ +{ callPackage, lib, ...}: +let + buildGraylog = callPackage ./graylog.nix {}; +in buildGraylog { + version = "4.3.9"; + sha256 = "sha256-BMw6U47LQQFFVM34rgadMetpYTtj6R3E+uU0dtTcH64="; + maintainers = [ lib.maintainers.f2k1de ]; + license = lib.licenses.sspl; +} diff --git a/pkgs/tools/misc/graylog/5.0.nix b/pkgs/tools/misc/graylog/5.0.nix new file mode 100644 index 00000000000..d13c682d7c7 --- /dev/null +++ b/pkgs/tools/misc/graylog/5.0.nix @@ -0,0 +1,9 @@ +{ callPackage, lib, ...}: +let + buildGraylog = callPackage ./graylog.nix {}; +in buildGraylog { + version = "5.0.6"; + sha256 = "sha256-GOxiGx2BU4x4A9W0k94gqXlhRwoixm0WK0UZN+LXkyQ="; + maintainers = [ lib.maintainers.f2k1de ]; + license = lib.licenses.sspl; +} diff --git a/pkgs/tools/misc/graylog/default.nix b/pkgs/tools/misc/graylog/default.nix deleted file mode 100644 index 99f130b3e5d..00000000000 --- a/pkgs/tools/misc/graylog/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ lib, stdenv, fetchurl, makeWrapper, openjdk11_headless, nixosTests }: - -stdenv.mkDerivation rec { - pname = "graylog"; - version = "3.3.16"; - - src = fetchurl { - url = "https://packages.graylog2.org/releases/graylog/graylog-${version}.tgz"; - sha256 = "sha256-P/cnfYKnMSnDD4otEyirKlLaFduyfSO9sao4BY3c3Z4="; - }; - - dontBuild = true; - dontStrip = true; - - nativeBuildInputs = [ makeWrapper ]; - makeWrapperArgs = [ "--set-default" "JAVA_HOME" "${openjdk11_headless}" ]; - - passthru.tests = { inherit (nixosTests) graylog; }; - - installPhase = '' - mkdir -p $out - cp -r {graylog.jar,lib,bin,plugin} $out - wrapProgram $out/bin/graylogctl $makeWrapperArgs - ''; - - meta = with lib; { - description = "Open source log management solution"; - homepage = "https://www.graylog.org/"; - sourceProvenance = with sourceTypes; [ binaryBytecode ]; - license = licenses.gpl3; - maintainers = [ maintainers.fadenb ]; - mainProgram = "graylogctl"; - platforms = platforms.unix; - }; -} diff --git a/pkgs/tools/misc/graylog/graylog.nix b/pkgs/tools/misc/graylog/graylog.nix new file mode 100644 index 00000000000..4608d6fa3f5 --- /dev/null +++ b/pkgs/tools/misc/graylog/graylog.nix @@ -0,0 +1,41 @@ +{ lib, stdenv, fetchurl, makeWrapper, openjdk11_headless, openjdk17_headless, systemd, nixosTests}: + +{ version, sha256, maintainers, license }: +stdenv.mkDerivation rec { + pname = "graylog_${lib.versions.majorMinor version}"; + inherit version; + + src = fetchurl { + url = "https://packages.graylog2.org/releases/graylog/graylog-${version}.tgz"; + inherit sha256; + }; + + dontBuild = true; + + nativeBuildInputs = [ makeWrapper ]; + makeWrapperArgs = [ + "--set-default" "JAVA_HOME" "${if (lib.versionAtLeast version "5.0") then openjdk17_headless else openjdk11_headless}" + "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ systemd ]}" + ]; + + passthru.tests = { inherit (nixosTests) graylog; }; + + installPhase = '' + mkdir -p $out + cp -r {graylog.jar,bin,plugin} $out + '' + lib.optionalString (lib.versionOlder version "4.3") '' + cp -r lib $out + '' + '' + wrapProgram $out/bin/graylogctl $makeWrapperArgs + ''; + + meta = with lib; { + description = "Open source log management solution"; + homepage = "https://www.graylog.org/"; + sourceProvenance = with sourceTypes; [ binaryBytecode ]; + inherit license; + inherit maintainers; + mainProgram = "graylogctl"; + platforms = platforms.unix; + }; +} diff --git a/pkgs/tools/misc/graylog/plugins.nix b/pkgs/tools/misc/graylog/plugins.nix index 756484234d6..9edf81f6362 100644 --- a/pkgs/tools/misc/graylog/plugins.nix +++ b/pkgs/tools/misc/graylog/plugins.nix @@ -1,6 +1,6 @@ -{ pkgs, lib, stdenv, fetchurl, unzip, graylog }: +{ lib, stdenv, fetchurl, unzip, graylog-5_0 }: -with pkgs.lib; +with lib; let glPlugin = a@{ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 20f1e7b4aaa..b5209bf5bbe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8054,7 +8054,14 @@ with pkgs; grails = callPackage ../development/web/grails { jdk = null; }; - graylog = callPackage ../tools/misc/graylog { }; + graylog-3_3 = callPackage ../tools/misc/graylog/3.3.nix { }; + + graylog-4_0 = callPackage ../tools/misc/graylog/4.0.nix { }; + + graylog-4_3 = callPackage ../tools/misc/graylog/4.3.nix { }; + + graylog-5_0 = callPackage ../tools/misc/graylog/5.0.nix { }; + graylogPlugins = recurseIntoAttrs ( callPackage ../tools/misc/graylog/plugins.nix { } ); |