aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'flakes/mypackages/pkgs')
-rw-r--r--flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix b/flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix
index 942e32c..f3d5be8 100644
--- a/flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix
+++ b/flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix
@@ -1,4 +1,4 @@
1{ mantis_config ? "/etc/mantisbt/config_inc.php", stdenv, fetchurl, lib, callPackage}: 1{ mantis_config ? {}, stdenv, fetchurl, lib, callPackage}:
2let 2let
3 pluginNames = [ "slack" "source-integration" "taskodrome" "mantis-kanban" "tasks" ]; 3 pluginNames = [ "slack" "source-integration" "taskodrome" "mantis-kanban" "tasks" ];
4 allPlugins = lib.attrsets.genAttrs pluginNames 4 allPlugins = lib.attrsets.genAttrs pluginNames
@@ -37,8 +37,7 @@ let
37 #]; 37 #];
38 installPhase = '' 38 installPhase = ''
39 cp -a . $out 39 cp -a . $out
40 ln -s ${mantis_config} $out/config/config_inc.php 40 '' + builtins.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "ln -s ${v} $out/config/${k}.php") mantis_config);
41 '';
42 41
43 passthru = toPassthru package []; 42 passthru = toPassthru package [];
44 }; 43 };