From 2887cca3e2aaf392bb405fe3b14f6eaad726d72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 3 Aug 2024 00:33:10 +0200 Subject: Fix e-mails for mantisbt --- flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'flakes/mypackages') 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 @@ -{ mantis_config ? "/etc/mantisbt/config_inc.php", stdenv, fetchurl, lib, callPackage}: +{ mantis_config ? {}, stdenv, fetchurl, lib, callPackage}: let pluginNames = [ "slack" "source-integration" "taskodrome" "mantis-kanban" "tasks" ]; allPlugins = lib.attrsets.genAttrs pluginNames @@ -37,8 +37,7 @@ let #]; installPhase = '' cp -a . $out - ln -s ${mantis_config} $out/config/config_inc.php - ''; + '' + builtins.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "ln -s ${v} $out/config/${k}.php") mantis_config); passthru = toPassthru package []; }; -- cgit v1.2.3