2011-12-21 17:24:40 +01:00
|
|
|
{ stdenv, fetchurl, libtool, gettext }:
|
2009-01-12 22:12:07 +01:00
|
|
|
|
2013-03-25 21:58:51 +01:00
|
|
|
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
|
2009-01-12 22:12:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-09-07 21:52:33 +02:00
|
|
|
name = "cpufrequtils-008";
|
2011-09-19 20:25:55 +02:00
|
|
|
|
2009-01-12 22:12:07 +01:00
|
|
|
src = fetchurl {
|
2013-01-15 18:45:39 +01:00
|
|
|
url = http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-008.tar.gz;
|
2011-09-07 21:52:33 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2011-12-21 17:24:40 +01:00
|
|
|
buildInputs = [ stdenv.gcc.libc.kernelHeaders libtool gettext ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tools to display or change the CPU governor settings";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2009-01-12 22:12:07 +01:00
|
|
|
}
|