2011-12-21 08:24:40 -08:00
|
|
|
{ stdenv, fetchurl, libtool, gettext }:
|
2009-01-12 13:12:07 -08:00
|
|
|
|
2013-03-25 13:58:51 -07:00
|
|
|
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
|
2009-01-12 13:12:07 -08:00
|
|
|
|
2013-11-28 04:22:38 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2011-09-07 12:52:33 -07:00
|
|
|
name = "cpufrequtils-008";
|
2011-09-19 11:25:55 -07:00
|
|
|
|
2009-01-12 13:12:07 -08:00
|
|
|
src = fetchurl {
|
2013-11-20 13:10:47 -08:00
|
|
|
url = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/${name}.tar.gz";
|
|
|
|
sha256 = "127i38d4w1hv2dzdy756gmbhq25q3k34nqb2s0xlhsfhhdqs0lq0";
|
2009-01-12 13:12:07 -08:00
|
|
|
};
|
|
|
|
|
2013-10-01 04:14:14 -07:00
|
|
|
patches = [
|
|
|
|
# I am not 100% sure that this is ok, but it breaks repeatable builds.
|
|
|
|
./remove-pot-creation-date.patch
|
|
|
|
];
|
|
|
|
|
2009-01-12 13:12:07 -08:00
|
|
|
patchPhase = ''
|
2009-02-03 02:39:48 -08:00
|
|
|
sed -e "s@= /usr/bin/@= @g" \
|
2009-01-12 13:12:07 -08:00
|
|
|
-e "s@/usr/@$out/@" \
|
|
|
|
-i Makefile
|
|
|
|
'';
|
|
|
|
|
2014-12-17 10:11:30 -08:00
|
|
|
buildInputs = [ stdenv.cc.libc.kernelHeaders libtool gettext ];
|
2011-12-21 08:24:40 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tools to display or change the CPU governor settings";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2009-01-12 13:12:07 -08:00
|
|
|
}
|