diff options
author | Aaron Andersen <aaron@fosslib.net> | 2020-12-28 10:06:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 10:06:46 -0500 |
commit | 8ff0302c7a2e6949c24a897b7272cb2df228787f (patch) | |
tree | 6f47422f5d47ae0c43a889af51f534eb6a3c56f8 /pkgs/applications/version-management | |
parent | 1995d8d919dc183b1bda53f19ec0c21b1c9e4024 (diff) | |
parent | 1288f41c6ee3506654d2f88a204f2f7951b8f664 (diff) |
Merge pull request #107155 from aanderse/redmine
redmine: wrap rdm-mailhandler.rb for inbound e-mail capabilities
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/redmine/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/version-management/redmine/default.nix b/pkgs/applications/version-management/redmine/default.nix index defbf9c2aec4..4279fdd5f995 100644 --- a/pkgs/applications/version-management/redmine/default.nix +++ b/pkgs/applications/version-management/redmine/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, bundlerEnv, ruby }: +{ stdenv, fetchurl, bundlerEnv, ruby, makeWrapper }: let version = "4.1.1"; @@ -19,6 +19,7 @@ in sha256 = "1nndy5hz8zvfglxf1f3bsb1pkrfwinfxzkdan1vjs3rkckkszyh5"; }; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ rubyEnv rubyEnv.wrappedRuby rubyEnv.bundler ]; # taken from https://www.redmine.org/issues/33784 @@ -31,12 +32,14 @@ in ''; installPhase = '' - mkdir -p $out/share + mkdir -p $out/bin $out/share cp -r . $out/share/redmine for i in config files log plugins public/plugin_assets public/themes tmp; do rm -rf $out/share/redmine/$i ln -fs /run/redmine/$i $out/share/redmine/$i done + + makeWrapper ${rubyEnv.wrappedRuby}/bin/ruby $out/bin/rdm-mailhandler.rb --add-flags $out/share/redmine/extra/mail_handler/rdm-mailhandler.rb ''; meta = with stdenv.lib; { |