From 6035129599ef08fa5af62e2ef0d7467ba9d1b748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 10 Jun 2024 13:16:22 +0200 Subject: Mantisbt bump --- flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix | 19 ++++++++++--------- .../mantisbt_2/plugins/mantis-kanban/default.nix | 19 +++++++++++++++++++ .../webapps/mantisbt_2/plugins/taskodrome/default.nix | 19 +++++++++++++++++++ .../pkgs/webapps/mantisbt_2/plugins/tasks/default.nix | 18 ++++++++++++++++++ 4 files changed, 66 insertions(+), 9 deletions(-) create mode 100644 flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/mantis-kanban/default.nix create mode 100644 flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/taskodrome/default.nix create mode 100644 flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/tasks/default.nix (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 466595d..942e32c 100644 --- a/flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix +++ b/flakes/mypackages/pkgs/webapps/mantisbt_2/default.nix @@ -1,6 +1,6 @@ { mantis_config ? "/etc/mantisbt/config_inc.php", stdenv, fetchurl, lib, callPackage}: let - pluginNames = [ "slack" "source-integration" ]; + pluginNames = [ "slack" "source-integration" "taskodrome" "mantis-kanban" "tasks" ]; allPlugins = lib.attrsets.genAttrs pluginNames (name: callPackage (./plugins + "/${name}") {}); toPassthru = pkg: plugins: { @@ -23,17 +23,18 @@ let in newMantisbt; package = stdenv.mkDerivation rec { name = "mantisbt-${version}"; - version = "2.21.0"; + version = "2.26.1"; src = fetchurl { url = "https://downloads.sourceforge.net/project/mantisbt/mantis-stable/${version}/${name}.tar.gz"; - sha256 = "13lx569dp1gibq5daqp7dj6gsqic85rrix1s7xkp60gwpzk8wiw5"; + sha256 = "sha256-poJCEjq+yB2RbA0k5go899mBGBXewjLZHGFmabrCYW4="; }; - patches = [ - ./bug_report.php.diff - ./bug_report_page.php.diff - ./bugnote_add.php.diff - ./bugnote_add_inc.php.diff - ]; + # FIXME: captcha for anonymous + #patches = [ + # ./bug_report.php.diff + # ./bug_report_page.php.diff + # ./bugnote_add.php.diff + # ./bugnote_add_inc.php.diff + #]; installPhase = '' cp -a . $out ln -s ${mantis_config} $out/config/config_inc.php diff --git a/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/mantis-kanban/default.nix b/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/mantis-kanban/default.nix new file mode 100644 index 0000000..1d51705 --- /dev/null +++ b/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/mantis-kanban/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + version = "v2.1.0"; + name = "mantisbt-plugin-kanban-${version}"; + src = fetchFromGitHub { + owner = "mantisbt-plugins"; + repo = "MantisKanban"; + rev = "62c3815578cab8a7766580049c3a4f5968331231"; + sha256 = "sha256-wvinh7+QjsCEk05LHCL1KfTy/3+PvnVYwduHq2hlQP0="; + }; + installPhase = '' + mkdir $out + cp -a * $out/ + ''; + passthru = { + pluginName = "MantisKanban"; + }; +} + diff --git a/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/taskodrome/default.nix b/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/taskodrome/default.nix new file mode 100644 index 0000000..dcf0d93 --- /dev/null +++ b/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/taskodrome/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + version = "v2.1.8"; + name = "mantisbt-plugin-taskodrome-${version}"; + src = fetchFromGitHub { + owner = "mantisbt-plugins"; + repo = "Taskodrome"; + rev = "d8e24a0991f58a902c6c5cf9e88132a17ad533ac"; + sha256 = "sha256-Jp2ROIjcSFTtGC58sDUg4FaB3mOKbY3GGpnIQqSpUaY="; + }; + installPhase = '' + mkdir $out + cp -a Taskodrome $out/ + ''; + passthru = { + pluginName = "Taskodrome"; + selector = "Taskodrome"; + }; +} diff --git a/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/tasks/default.nix b/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/tasks/default.nix new file mode 100644 index 0000000..fe842f4 --- /dev/null +++ b/flakes/mypackages/pkgs/webapps/mantisbt_2/plugins/tasks/default.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + version = "v3.30"; + name = "mantisbt-plugin-tasks-${version}"; + src = fetchFromGitHub { + owner = "mantisbt-plugins"; + repo = "Tasks"; + rev = "38d8255aa989b914ec0730e58ca73708d07f35c3"; + sha256 = "sha256-QDMa8ar/FEpJCSH1D9LEaXSDR+WRkDx3stXm2+LKO0Q="; + }; + installPhase = '' + mkdir $out + cp -a * $out/ + ''; + passthru = { + pluginName = "Tasks"; + }; +} -- cgit v1.2.3