mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
38cae8b359
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
33 lines
908 B
Nix
33 lines
908 B
Nix
{ lib, stdenv, fetchurl, libtool, gettext }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cpufrequtils";
|
|
version = "008";
|
|
|
|
src = fetchurl {
|
|
url = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-${version}.tar.gz";
|
|
hash = "sha256-AFOgcYPQaUg70GJhS8YcuAgMV32mHN9+ExsGThoa8Yg=";
|
|
};
|
|
|
|
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 ];
|
|
|
|
meta = with lib; {
|
|
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.gpl2Only;
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "cpufreq-set";
|
|
};
|
|
}
|