diff options
author | Aaron Andersen <aaron@fosslib.net> | 2019-08-12 18:02:22 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2019-08-15 21:01:23 -0400 |
commit | efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4 (patch) | |
tree | fa977e4f11232946562c38e1ec021833bf1e983b /nixos/modules | |
parent | 265163da07cb1045af26613cf6f218ebd9548fc1 (diff) | |
download | nixlib-efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4.tar nixlib-efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4.tar.gz nixlib-efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4.tar.bz2 nixlib-efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4.tar.lz nixlib-efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4.tar.xz nixlib-efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4.tar.zst nixlib-efbdce2e96e1a5befc4e3ef6681ad3edb5ba50a4.zip |
nixos/mantisbt: drop unmaintained module
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/misc/mantisbt.nix | 68 |
2 files changed, 0 insertions, 69 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index f0122f1c886c..7930770aad47 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -435,7 +435,6 @@ ./services/misc/logkeys.nix ./services/misc/leaps.nix ./services/misc/lidarr.nix - ./services/misc/mantisbt.nix ./services/misc/mathics.nix ./services/misc/matrix-synapse.nix ./services/misc/mbpfan.nix diff --git a/nixos/modules/services/misc/mantisbt.nix b/nixos/modules/services/misc/mantisbt.nix deleted file mode 100644 index 7e3474feb672..000000000000 --- a/nixos/modules/services/misc/mantisbt.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; -let - cfg = config.services.mantisbt; - - freshInstall = cfg.extraConfig == ""; - - # combined code+config directory - mantisbt = let - config_inc = pkgs.writeText "config_inc.php" ("<?php\n" + cfg.extraConfig); - src = pkgs.fetchurl { - url = "mirror://sourceforge/mantisbt/${name}.tar.gz"; - sha256 = "1pl6xn793p3mxc6ibpr2bhg85vkdlcf57yk7pfc399g47l8x4508"; - }; - name = "mantisbt-1.2.19"; - in - # We have to copy every time; otherwise config won't be found. - pkgs.runCommand name - { preferLocalBuild = true; allowSubstitutes = false; } - ('' - mkdir -p "$out" - cd "$out" - tar -xf '${src}' --strip-components=1 - ln -s '${config_inc}' config_inc.php - '' - + lib.optionalString (!freshInstall) "rm -r admin/" - ); -in -{ - options.services.mantisbt = { - enable = mkOption { - type = types.bool; - default = false; - description = '' - Enable the mantisbt web service. - This switches on httpd with PHP and database. - ''; - }; - urlPrefix = mkOption { - type = types.string; - default = "/mantisbt"; - description = "The URL prefix under which the mantisbt service appears."; - }; - extraConfig = mkOption { - type = types.lines; - default = ""; - description = '' - The contents of config_inc.php, without leading <?php. - If left empty, the admin directory will be accessible. - ''; - }; - }; - - - config = mkIf cfg.enable { - services.mysql.enable = true; - services.httpd.enable = true; - services.httpd.enablePHP = true; - # The httpd sub-service showing mantisbt. - services.httpd.extraSubservices = [ { function = { ... }: { - extraConfig = - '' - Alias ${cfg.urlPrefix} "${mantisbt}" - ''; - };}]; - }; -} |