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

26 lines
658 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libtool, gettext }:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
2013-11-28 12:22:38 +00:00
stdenv.mkDerivation rec {
name = "cpufrequtils-008";
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";
};
patchPhase = ''
sed -e "s@= /usr/bin/@= @g" \
-e "s@/usr/@$out/@" \
-i Makefile
'';
buildInputs = [ stdenv.gcc.libc.kernelHeaders libtool gettext ];
meta = {
description = "Tools to display or change the CPU governor settings";
platforms = stdenv.lib.platforms.linux;
};
}