diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-06-13 04:30:57 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-06-13 04:30:57 +0000 |
commit | 25e5b832dd716740106389e30566e9f205e0111c (patch) | |
tree | ec5a03992d435db8402711bab72afd5c0767e32b /pkgs/servers | |
parent | 3d7f5dd7d631fb9dca53eda482b2eced694d2e1b (diff) |
Hopefully made Postfix installable again
svn path=/nixpkgs/trunk/; revision=12068
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/mail/postfix/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix index f9f5f51155905..cea7eaaab48ac 100644 --- a/pkgs/servers/mail/postfix/default.nix +++ b/pkgs/servers/mail/postfix/default.nix @@ -7,6 +7,27 @@ stdenv.mkDerivation { sha256 = "04hxpyd3h1f48fnppjwqqxbil13bcwidzpfkra2pgm7h42d9blq7"; }; + installTargets = ["non-interactive-package"]; + installFlags = [" install_root=$out "]; + preInstall = "sed -e '/^PATH=/d' -i postfix-install"; + postInstall = '' + ensureDir $out + mv ut/$out/* $out/ + ''; + + preBuild = '' + export daemon_directory=$out/libexec/postfix + export command_directory=$out/sbin + export queue_directory=/var/spool/postfix + export sendmail_path=$out/bin/sendmail + export mailq_path=$out/bin/mailq + export newaliases_path=$out/bin/newaliases + export html_directory=$out/share/postfix/doc/html + export manpage_directory=$out/share/man + export sample_directory=$out/share/postfix/doc/samples + export readme_directory=$out/share/postfix/doc + ''; + buildinputs = [db4]; patches = [./postfix-2.2.9-db.patch ./postfix-2.2.9-lib.patch]; inherit glibc; |