graylog: let the user decide which version of graylog to use
This commit is contained in:
parent
117f6944c7
commit
c7629a78b7
@ -37,8 +37,8 @@ in
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.graylog;
|
||||
defaultText = literalExpression "pkgs.graylog";
|
||||
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");
|
||||
description = lib.mdDoc "Graylog package to use.";
|
||||
};
|
||||
|
||||
|
@ -17,7 +17,7 @@ let
|
||||
dontUnpack = true;
|
||||
nativeBuildInputs = [ unzip ];
|
||||
meta = a.meta // {
|
||||
platforms = graylog.meta.platforms;
|
||||
platforms = graylog-5_0.meta.platforms;
|
||||
maintainers = (a.meta.maintainers or []) ++ [ maintainers.fadenb ];
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user