nixpkgs/pkgs/os-specific/linux/cpufrequtils/default.nix

31 lines
839 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libtool, gettext }:
2013-11-28 13:22:38 +01:00
stdenv.mkDerivation rec {
name = "cpufrequtils-008";
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";
};
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
];
patchPhase = ''
sed -e "s@= /usr/bin/@= @g" \
-e "s@/usr/@$out/@" \
-i Makefile
'';
buildInputs = [ stdenv.cc.libc.linuxHeaders libtool gettext ];
2018-08-15 20:18:55 +02:00
meta = with stdenv.lib; {
description = "Tools to display or change the CPU governor settings";
2018-08-15 20:18:55 +02:00
homepage = http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html;
license = licenses.gpl2;
platforms = platforms.linux;
};
}