From 987c01630a2584a9b8af9ba36df99da47f89a934 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Feb 2009 10:39:48 +0000 Subject: [PATCH] svn path=/nixpkgs/branches/stdenv-updates/; revision=13971 --- pkgs/os-specific/linux/cpufrequtils/default.nix | 5 +++-- pkgs/os-specific/linux/iputils/default.nix | 2 +- pkgs/servers/mail/postfix/default.nix | 17 ++++++++++------- pkgs/top-level/all-packages.nix | 3 +-- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/pkgs/os-specific/linux/cpufrequtils/default.nix b/pkgs/os-specific/linux/cpufrequtils/default.nix index f2ee49ef75b2..cdf06103f683 100644 --- a/pkgs/os-specific/linux/cpufrequtils/default.nix +++ b/pkgs/os-specific/linux/cpufrequtils/default.nix @@ -1,16 +1,17 @@ {stdenv, fetchurl, kernelHeaders, glibc, libtool, gettext}: -assert stdenv.isLinux; +assert stdenv.isLinux && stdenv.system != "powerpc-linux"; stdenv.mkDerivation { name = "cpufrequtils-005"; + src = fetchurl { url = http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-005.tar.gz; md5 = "100a8220a546ce61ce943d4107e67db9"; }; patchPhase = '' - sed -e "s@= /usr/bin/@= @g" \ + sed -e "s@= /usr/bin/@= @g" \ -e "s@/usr/@$out/@" \ -i Makefile ''; diff --git a/pkgs/os-specific/linux/iputils/default.nix b/pkgs/os-specific/linux/iputils/default.nix index 354419a4109c..14bd1b2b3239 100644 --- a/pkgs/os-specific/linux/iputils/default.nix +++ b/pkgs/os-specific/linux/iputils/default.nix @@ -1,6 +1,6 @@ {stdenv, fetchurl, kernelHeaders, glibc}: -assert stdenv.isLinux; +assert stdenv.isLinux && stdenv.system != "powerpc-linux"; stdenv.mkDerivation { name = "iputils-20020927"; 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; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7f0aaa687951..d1c9348e2b15 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5806,8 +5806,7 @@ let }; postfix = import ../servers/mail/postfix { - inherit fetchurl stdenv db4 openssl cyrus_sasl; - glibc = stdenv.glibc; + inherit fetchurl stdenv db4 openssl cyrus_sasl glibc; }; pulseaudio = import ../servers/pulseaudio {