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