summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2023-11-15 00:34:14 +0100
committerAnthony Roussel <anthony@roussel.dev>2023-11-15 15:14:28 +0100
commit8c7c1e7a302671c685cbcfc3730b6d33dfde34b9 (patch)
tree35179634a5c2d20b8cff2c6bbbb99240d4924671
parentdeae39af435a3088be677dbeb88a0167fd4682c4 (diff)
downloadnixpkgs-8c7c1e7a302671c685cbcfc3730b6d33dfde34b9.tar
nixpkgs-8c7c1e7a302671c685cbcfc3730b6d33dfde34b9.tar.gz
nixpkgs-8c7c1e7a302671c685cbcfc3730b6d33dfde34b9.tar.bz2
nixpkgs-8c7c1e7a302671c685cbcfc3730b6d33dfde34b9.tar.lz
nixpkgs-8c7c1e7a302671c685cbcfc3730b6d33dfde34b9.tar.xz
nixpkgs-8c7c1e7a302671c685cbcfc3730b6d33dfde34b9.tar.zst
nixpkgs-8c7c1e7a302671c685cbcfc3730b6d33dfde34b9.zip
nixos/plantuml-server: remove deprecated allowPlantumlInclude option
See https://github.com/plantuml/plantuml-server/pull/301
-rw-r--r--nixos/modules/services/web-apps/plantuml-server.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/nixos/modules/services/web-apps/plantuml-server.nix b/nixos/modules/services/web-apps/plantuml-server.nix
index 4e24b3f24b1..1fa69814c6c 100644
--- a/nixos/modules/services/web-apps/plantuml-server.nix
+++ b/nixos/modules/services/web-apps/plantuml-server.nix
@@ -8,6 +8,7 @@ let
     mkIf
     mkOption
     mkPackageOptionMD
+    mkRemovedOptionModule
     types
     ;
 
@@ -16,6 +17,10 @@ let
 in
 
 {
+  imports = [
+    (mkRemovedOptionModule [ "services" "plantuml-server" "allowPlantumlInclude" ] "This option has been removed from PlantUML.")
+  ];
+
   options = {
     services.plantuml-server = {
       enable = mkEnableOption (mdDoc "PlantUML server");
@@ -86,12 +91,6 @@ in
         default = null;
         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";
         PLANTUML_STATS = if cfg.plantumlStats then "on" else "off";
         HTTP_AUTHORIZATION = cfg.httpAuthorization;
-        ALLOW_PLANTUML_INCLUDE = if cfg.allowPlantumlInclude then "true" else "false";
       };
       script = ''
       ${cfg.packages.jdk}/bin/java \