2011-12-21 16:24:40 +00:00
|
|
|
{ stdenv, fetchurl, libtool, gettext }:
|
2009-01-12 21:12:07 +00:00
|
|
|
|
2013-11-28 12:22:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-09-07 19:52:33 +00:00
|
|
|
name = "cpufrequtils-008";
|
2011-09-19 18:25:55 +00:00
|
|
|
|
2009-01-12 21:12:07 +00:00
|
|
|
src = fetchurl {
|
2013-11-20 21:10:47 +00:00
|
|
|
url = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/${name}.tar.gz";
|
|
|
|
sha256 = "127i38d4w1hv2dzdy756gmbhq25q3k34nqb2s0xlhsfhhdqs0lq0";
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
|
2013-10-01 11:14:14 +00:00
|
|
|
patches = [
|
|
|
|
# I am not 100% sure that this is ok, but it breaks repeatable builds.
|
|
|
|
./remove-pot-creation-date.patch
|
|
|
|
];
|
|
|
|
|
2009-01-12 21:12:07 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2016-02-18 20:11:15 +00:00
|
|
|
buildInputs = [ stdenv.cc.libc.linuxHeaders libtool gettext ];
|
2011-12-21 16:24:40 +00:00
|
|
|
|
2018-08-15 18:18:55 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-12-21 16:24:40 +00:00
|
|
|
description = "Tools to display or change the CPU governor settings";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html";
|
2018-08-15 18:18:55 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2011-12-21 16:24:40 +00:00
|
|
|
};
|
2009-01-12 21:12:07 +00:00
|
|
|
}
|