diff --git a/pkgs/applications/networking/misc/zammad/default.nix b/pkgs/applications/networking/misc/zammad/default.nix index cec2d92df2b3..98d56284683f 100644 --- a/pkgs/applications/networking/misc/zammad/default.nix +++ b/pkgs/applications/networking/misc/zammad/default.nix @@ -28,7 +28,10 @@ let src = fetchFromGitHub (lib.importJSON ./source.json); - patches = [ ./0001-nulldb.patch ]; + patches = [ + ./0001-nulldb.patch + ./fix-sendmail-location.diff + ]; postPatch = '' sed -i -e "s|ruby '3.1.[0-9]\+'|ruby '${ruby.version}'|" Gemfile diff --git a/pkgs/applications/networking/misc/zammad/fix-sendmail-location.diff b/pkgs/applications/networking/misc/zammad/fix-sendmail-location.diff new file mode 100644 index 000000000000..c8f948284e73 --- /dev/null +++ b/pkgs/applications/networking/misc/zammad/fix-sendmail-location.diff @@ -0,0 +1,12 @@ +diff --git a/app/models/channel/driver/sendmail.rb b/app/models/channel/driver/sendmail.rb +index b15ef48a6..64c120a87 100644 +--- a/app/models/channel/driver/sendmail.rb ++++ b/app/models/channel/driver/sendmail.rb +@@ -32,6 +32,6 @@ def delivery_method(mail) + + return mail.delivery_method :test if Rails.env.test? + +- mail.delivery_method :sendmail ++ mail.delivery_method :sendmail, :location => '/run/wrappers/bin/sendmail' + end + end