summary refs log tree commit diff
path: root/pkgs/servers/mail
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/mail')
-rw-r--r--pkgs/servers/mail/postfix/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix
index 03fd33150e32..2d1499492305 100644
--- a/pkgs/servers/mail/postfix/default.nix
+++ b/pkgs/servers/mail/postfix/default.nix
@@ -1,22 +1,23 @@
-{stdenv, fetchurl, db4, glibc
-  , openssl
-  , cyrus_sasl
-}:
+{stdenv, fetchurl, db4, glibc, openssl, cyrus_sasl}:
 
-assert stdenv.isLinux;
+assert stdenv.isLinux && stdenv ? coreutils;
 
 stdenv.mkDerivation {
   name = "postfix-2.2.11";
+  
   src = fetchurl {
     url = ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/postfix-2.2.11.tar.gz;
     sha256 = "04hxpyd3h1f48fnppjwqqxbil13bcwidzpfkra2pgm7h42d9blq7";
   };
 
   installTargets = ["non-interactive-package"];
+  
   installFlags = [" install_root=$out "];
-  preInstall = "
+  
+  preInstall = ''
     sed -e '/^PATH=/d' -i postfix-install
-  ";
+  '';
+  
   postInstall = ''
     ensureDir $out
     mv ut/$out/* $out/
@@ -44,6 +45,8 @@ stdenv.mkDerivation {
   '';
 
   buildinputs = [db4 openssl cyrus_sasl];
+  
   patches = [./postfix-2.2.9-db.patch ./postfix-2.2.9-lib.patch];
+  
   inherit glibc;
 }