nixpkgs/pkgs/os-specific/linux/cpufrequtils/default.nix
Eelco Dolstra e1a96b2b88 * Add cpufrequtils to the channel.
svn path=/nixpkgs/trunk/; revision=31017
2011-12-21 16:24:40 +00:00

26 lines
613 B
Nix

{ stdenv, fetchurl, libtool, gettext }:
assert stdenv.isLinux && stdenv.system != "powerpc-linux";
stdenv.mkDerivation {
name = "cpufrequtils-008";
src = fetchurl {
url = "mirror://kernel/linux/utils/kernel/cpufreq/cpufrequtils-008.tar.gz";
md5 = "52d3e09e47ffef634833f7fab168eccf";
};
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;
};
}