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