nixos/plantuml-server: remove deprecated allowPlantumlInclude option
See https://github.com/plantuml/plantuml-server/pull/301
This commit is contained in:
parent
deae39af43
commit
8c7c1e7a30
1 changed files with 5 additions and 7 deletions
|
@ -8,6 +8,7 @@ let
|
||||||
mkIf
|
mkIf
|
||||||
mkOption
|
mkOption
|
||||||
mkPackageOptionMD
|
mkPackageOptionMD
|
||||||
|
mkRemovedOptionModule
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -16,6 +17,10 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
(mkRemovedOptionModule [ "services" "plantuml-server" "allowPlantumlInclude" ] "This option has been removed from PlantUML.")
|
||||||
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
services.plantuml-server = {
|
services.plantuml-server = {
|
||||||
enable = mkEnableOption (mdDoc "PlantUML server");
|
enable = mkEnableOption (mdDoc "PlantUML server");
|
||||||
|
@ -86,12 +91,6 @@ in
|
||||||
default = null;
|
default = null;
|
||||||
description = mdDoc "When calling the proxy endpoint, the value of HTTP_AUTHORIZATION will be used to set the HTTP Authorization header.";
|
description = mdDoc "When calling the proxy endpoint, the value of HTTP_AUTHORIZATION will be used to set the HTTP Authorization header.";
|
||||||
};
|
};
|
||||||
|
|
||||||
allowPlantumlInclude = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = mdDoc "Enables !include processing which can read files from the server into diagrams. Files are read relative to the current working directory.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -106,7 +105,6 @@ in
|
||||||
GRAPHVIZ_DOT = "${cfg.graphvizPackage}/bin/dot";
|
GRAPHVIZ_DOT = "${cfg.graphvizPackage}/bin/dot";
|
||||||
PLANTUML_STATS = if cfg.plantumlStats then "on" else "off";
|
PLANTUML_STATS = if cfg.plantumlStats then "on" else "off";
|
||||||
HTTP_AUTHORIZATION = cfg.httpAuthorization;
|
HTTP_AUTHORIZATION = cfg.httpAuthorization;
|
||||||
ALLOW_PLANTUML_INCLUDE = if cfg.allowPlantumlInclude then "true" else "false";
|
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
${cfg.packages.jdk}/bin/java \
|
${cfg.packages.jdk}/bin/java \
|
||||||
|
|
Loading…
Reference in a new issue