nixpkgs/pkgs/os-specific/linux/cpufrequtils/default.nix
Cillian de Roiste c92ea6742b The hash for cpufrequtils 005 has changed, updating to 008
svn path=/nixpkgs/trunk/; revision=29099
2011-09-07 19:52:33 +00:00

21 lines
492 B
Nix

{stdenv, fetchurl, linuxHeaders, glibc, libtool, gettext}:
assert stdenv.isLinux && stdenv.system != "powerpc-linux";
stdenv.mkDerivation {
name = "cpufrequtils-008";
src = fetchurl {
url = http://kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-008.tar.gz;
md5 = "52d3e09e47ffef634833f7fab168eccf";
};
patchPhase = ''
sed -e "s@= /usr/bin/@= @g" \
-e "s@/usr/@$out/@" \
-i Makefile
'';
buildInputs = [ linuxHeaders glibc libtool gettext ];
}