2009-12-21 14:04:45 +00:00
|
|
|
{stdenv, fetchurl, linuxHeaders, glibc, libtool, gettext}:
|
2009-01-12 21:12:07 +00:00
|
|
|
|
2009-02-03 10:39:48 +00:00
|
|
|
assert stdenv.isLinux && stdenv.system != "powerpc-linux";
|
2009-01-12 21:12:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cpufrequtils-005";
|
2009-02-03 10:39:48 +00:00
|
|
|
|
2009-01-12 21:12:07 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-005.tar.gz;
|
|
|
|
md5 = "100a8220a546ce61ce943d4107e67db9";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
2009-02-03 10:39:48 +00:00
|
|
|
sed -e "s@= /usr/bin/@= @g" \
|
2009-01-12 21:12:07 +00:00
|
|
|
-e "s@/usr/@$out/@" \
|
|
|
|
-i Makefile
|
|
|
|
'';
|
|
|
|
|
2009-12-21 14:04:45 +00:00
|
|
|
buildInputs = [ linuxHeaders glibc libtool gettext ];
|
2009-01-12 21:12:07 +00:00
|
|
|
}
|