2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libtool, gettext }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cpufrequtils-008";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/${name}.tar.gz";
|
|
|
|
sha256 = "127i38d4w1hv2dzdy756gmbhq25q3k34nqb2s0xlhsfhhdqs0lq0";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# I am not 100% sure that this is ok, but it breaks repeatable builds.
|
|
|
|
./remove-pot-creation-date.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e "s@= /usr/bin/@= @g" \
|
|
|
|
-e "s@/usr/@$out/@" \
|
|
|
|
-i Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ stdenv.cc.libc.linuxHeaders libtool gettext ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools to display or change the CPU governor settings";
|
|
|
|
homepage = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|