mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
graylog: let the user decide which version of graylog to use
This commit is contained in:
parent
117f6944c7
commit
c7629a78b7
2 changed files with 3 additions and 3 deletions
|
@ -37,8 +37,8 @@ in
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.graylog;
|
default = if versionOlder config.system.stateVersion "23.05" then pkgs.graylog-3_3 else pkgs.graylog-5_0;
|
||||||
defaultText = literalExpression "pkgs.graylog";
|
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.";
|
description = lib.mdDoc "Graylog package to use.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ let
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
meta = a.meta // {
|
meta = a.meta // {
|
||||||
platforms = graylog.meta.platforms;
|
platforms = graylog-5_0.meta.platforms;
|
||||||
maintainers = (a.meta.maintainers or []) ++ [ maintainers.fadenb ];
|
maintainers = (a.meta.maintainers or []) ++ [ maintainers.fadenb ];
|
||||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue