anchor.diff:      '';
   
       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; {
  
positive.code: { stdenv, fetchurl, bundlerEnv, ruby }:
  
  let
    version = "4.1.1";
  
negative.code:       sha256 = "1nndy5hz8zvfglxf1f3bsb1pkrfwinfxzkdan1vjs3rkckkszyh5";
      };
  
      nativeBuildInputs = [ makeWrapper ];
      buildInputs = [ rubyEnv rubyEnv.wrappedRuby rubyEnv.bundler ];
  
      # taken from https://www.redmine.org/issues/33784
  