mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
21 lines
498 B
Nix
21 lines
498 B
Nix
{stdenv, fetchurl, kernelHeaders, glibc, libtool, gettext}:
|
|
|
|
assert stdenv.isLinux && stdenv.system != "powerpc-linux";
|
|
|
|
stdenv.mkDerivation {
|
|
name = "cpufrequtils-005";
|
|
|
|
src = fetchurl {
|
|
url = http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-005.tar.gz;
|
|
md5 = "100a8220a546ce61ce943d4107e67db9";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -e "s@= /usr/bin/@= @g" \
|
|
-e "s@/usr/@$out/@" \
|
|
-i Makefile
|
|
'';
|
|
|
|
buildInputs = [ kernelHeaders glibc libtool gettext ];
|
|
}
|