diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-02-03 10:39:48 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-02-03 10:39:48 +0000 |
commit | 987c01630a2584a9b8af9ba36df99da47f89a934 (patch) | |
tree | b9a9737c3bbbf120c95d87abe99f147f9dc492bb /pkgs/servers/mail/postfix/default.nix | |
parent | debebd8eeb225d0f302961a4ccaab0c352cc4776 (diff) | |
download | nixpkgs-987c01630a2584a9b8af9ba36df99da47f89a934.tar nixpkgs-987c01630a2584a9b8af9ba36df99da47f89a934.tar.gz nixpkgs-987c01630a2584a9b8af9ba36df99da47f89a934.tar.bz2 nixpkgs-987c01630a2584a9b8af9ba36df99da47f89a934.tar.lz nixpkgs-987c01630a2584a9b8af9ba36df99da47f89a934.tar.xz nixpkgs-987c01630a2584a9b8af9ba36df99da47f89a934.tar.zst nixpkgs-987c01630a2584a9b8af9ba36df99da47f89a934.zip |
svn path=/nixpkgs/branches/stdenv-updates/; revision=13971
Diffstat (limited to 'pkgs/servers/mail/postfix/default.nix')
-rw-r--r-- | pkgs/servers/mail/postfix/default.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix index 03fd33150e3..2d149949230 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; } |