summary refs log tree commit diff
path: root/pkgs/tools/networking/mailutils
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2017-06-28 13:44:31 -0500
committerWill Dietz <w@wdtz.org>2017-06-28 13:58:16 -0500
commitd339dc762c73564cfbd20ab6c9be803e9c12e1e0 (patch)
tree10f99637e7fe80500363062b2efff7ecc86c6e30 /pkgs/tools/networking/mailutils
parent179936d75c7b8aa34cdf40b49c959b0b156e5ee1 (diff)
downloadnixpkgs-d339dc762c73564cfbd20ab6c9be803e9c12e1e0.tar
nixpkgs-d339dc762c73564cfbd20ab6c9be803e9c12e1e0.tar.gz
nixpkgs-d339dc762c73564cfbd20ab6c9be803e9c12e1e0.tar.bz2
nixpkgs-d339dc762c73564cfbd20ab6c9be803e9c12e1e0.tar.lz
nixpkgs-d339dc762c73564cfbd20ab6c9be803e9c12e1e0.tar.xz
nixpkgs-d339dc762c73564cfbd20ab6c9be803e9c12e1e0.tar.zst
nixpkgs-d339dc762c73564cfbd20ab6c9be803e9c12e1e0.zip
mailutils: Fix attempts to set unsupported ownership and perms
Diffstat (limited to 'pkgs/tools/networking/mailutils')
-rw-r--r--pkgs/tools/networking/mailutils/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/networking/mailutils/default.nix b/pkgs/tools/networking/mailutils/default.nix
index 0ae993db332..f83ea004db6 100644
--- a/pkgs/tools/networking/mailutils/default.nix
+++ b/pkgs/tools/networking/mailutils/default.nix
@@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
 
   patches = [ ./path-to-cat.patch ./no-gets.patch ./scm_c_string.patch ];
 
+  postPatch = ''
+    sed -i -e '/chown root:mail/d' \
+           -e 's/chmod [24]755/chmod 0755/' \
+      */Makefile{,.in,.am}
+  '';
+
   configureFlags = [
     "--with-gsasl"
     "--with-gssapi=${gss}"