about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-01-14 20:39:18 +0000
committerAlyssa Ross <hi@alyssa.is>2020-01-14 20:39:18 +0000
commit7e1f73abd7c0525b4de4b314e1e03166bd0449a5 (patch)
tree319928c303be57525f0b4a81212aa22b31cf3ebb
parentba5ad9d0ef6412d79564b455a89b187e68d97a1d (diff)
downloadnixlib-7e1f73abd7c0525b4de4b314e1e03166bd0449a5.tar
nixlib-7e1f73abd7c0525b4de4b314e1e03166bd0449a5.tar.gz
nixlib-7e1f73abd7c0525b4de4b314e1e03166bd0449a5.tar.bz2
nixlib-7e1f73abd7c0525b4de4b314e1e03166bd0449a5.tar.lz
nixlib-7e1f73abd7c0525b4de4b314e1e03166bd0449a5.tar.xz
nixlib-7e1f73abd7c0525b4de4b314e1e03166bd0449a5.tar.zst
nixlib-7e1f73abd7c0525b4de4b314e1e03166bd0449a5.zip
mailman: don't try to create /etc/mailman.cfg
-rw-r--r--nixpkgs/pkgs/servers/mail/mailman/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/servers/mail/mailman/default.nix b/nixpkgs/pkgs/servers/mail/mailman/default.nix
index 29e94f26a162..e4caa7a01be2 100644
--- a/nixpkgs/pkgs/servers/mail/mailman/default.nix
+++ b/nixpkgs/pkgs/servers/mail/mailman/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPythonPackage, fetchPypi, alembic, aiosmtpd, dnspython
+{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, alembic, aiosmtpd, dnspython
 , flufl_bounce, flufl_i18n, flufl_lock, lazr_config, lazr_delegates, passlib
 , requests, zope_configuration, click, falcon, importlib-resources
 , zope_component, lynx, postfix, authheaders, gunicorn
@@ -19,7 +19,14 @@ buildPythonPackage rec {
     zope_component authheaders gunicorn
   ];
 
-  patchPhase = ''
+  patches = [
+    (fetchpatch {
+      url = "https://gitlab.com/mailman/mailman/commit/4012396aa41d9f6c03fda89a13cc7bc655c19dd8.patch";
+      sha256 = "126nmqi7jma399lsf7gym5kra3xbl4mcs67hzfgn497vvzx77q47";
+    })
+  ];
+
+  postPatch = ''
     substituteInPlace src/mailman/config/postfix.cfg \
       --replace /usr/sbin/postmap ${postfix}/bin/postmap
     substituteInPlace src/mailman/config/schema.cfg \