From 24fd1fe6c62b7a9fc347794fde043285da272f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 13 Dec 2018 21:25:24 +0100 Subject: Initial commit published for NUR --- pkgs/webapps/mantisbt_2/plugins/slack/default.nix | 18 ++++++++++++++++++ .../plugins/source-integration/Source.API.php.diff | 12 ++++++++++++ .../plugins/source-integration/default.nix | 21 +++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 pkgs/webapps/mantisbt_2/plugins/slack/default.nix create mode 100644 pkgs/webapps/mantisbt_2/plugins/source-integration/Source.API.php.diff create mode 100644 pkgs/webapps/mantisbt_2/plugins/source-integration/default.nix (limited to 'pkgs/webapps/mantisbt_2/plugins') diff --git a/pkgs/webapps/mantisbt_2/plugins/slack/default.nix b/pkgs/webapps/mantisbt_2/plugins/slack/default.nix new file mode 100644 index 00000000..61ed15fd --- /dev/null +++ b/pkgs/webapps/mantisbt_2/plugins/slack/default.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + passthru = { + pluginName = "Slack"; + }; + version = "9286d2e-master"; + name = "mantisbt-plugin-slack-${version}"; + src = fetchFromGitHub { + owner = "mantisbt-plugins"; + repo = "Slack"; + rev = "9286d2eeeb8a986ed949e378711fef5f0bf182dc"; + sha256 = "0nn0v4jc967giilkzrppi5svd04m2hnals75xxp0iabcdjnih0mn"; + }; + installPhase = '' + sed -i -e "s/return '@' . \\\$username;/return \\\$username;/" Slack.php + cp -a . $out + ''; +} diff --git a/pkgs/webapps/mantisbt_2/plugins/source-integration/Source.API.php.diff b/pkgs/webapps/mantisbt_2/plugins/source-integration/Source.API.php.diff new file mode 100644 index 00000000..c3551445 --- /dev/null +++ b/pkgs/webapps/mantisbt_2/plugins/source-integration/Source.API.php.diff @@ -0,0 +1,12 @@ +--- b/Source/Source.API.php 2017-09-18 00:50:32.000000000 +0200 ++++ a/Source/Source.API.php 2018-03-04 19:00:25.578889039 +0100 +@@ -452,6 +452,9 @@ + # Allow other plugins to post-process commit data + event_signal( 'EVENT_SOURCE_COMMITS', array( $p_changesets ) ); + event_signal( 'EVENT_SOURCE_FIXED', array( $t_fixed_bugs ) ); ++ foreach( $t_fixed_bugs as $t_bug_id => $t_changeset ) { ++ event_signal( 'EVENT_BUG_ACTION', array('RESOLVE', $t_bug_id) ); ++ } + } + + /** diff --git a/pkgs/webapps/mantisbt_2/plugins/source-integration/default.nix b/pkgs/webapps/mantisbt_2/plugins/source-integration/default.nix new file mode 100644 index 00000000..dc6c7de0 --- /dev/null +++ b/pkgs/webapps/mantisbt_2/plugins/source-integration/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + version = "v2.2.0"; + name = "mantisbt-plugin-source-integration-${version}"; + src = fetchFromGitHub { + owner = "mantisbt-plugins"; + repo = "source-integration"; + rev = "44fc9e2e770aff4f40f56833f26a86ce0e2deb76"; + sha256 = "0gcm6kqqijnv303sk59zn27adwx5vkr545mwzyaq2nrpxnkwdy5b"; + }; + patches = [ + ./Source.API.php.diff + ]; + installPhase = '' + mkdir $out + cp -a Source* $out/ + ''; + passthru = { + selector = "Source*"; + }; +} -- cgit v1.2.3