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