Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libtool, 6 gettext, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "cpufrequtils"; 11 version = "008"; 12 13 src = fetchurl { 14 url = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-${version}.tar.gz"; 15 hash = "sha256-AFOgcYPQaUg70GJhS8YcuAgMV32mHN9+ExsGThoa8Yg="; 16 }; 17 18 patches = [ 19 # I am not 100% sure that this is ok, but it breaks repeatable builds. 20 ./remove-pot-creation-date.patch 21 ]; 22 23 patchPhase = '' 24 sed -e "s@= /usr/bin/@= @g" \ 25 -e "s@/usr/@$out/@" \ 26 -i Makefile 27 ''; 28 29 buildInputs = [ 30 stdenv.cc.libc.linuxHeaders 31 libtool 32 gettext 33 ]; 34 35 meta = with lib; { 36 description = "Tools to display or change the CPU governor settings"; 37 homepage = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"; 38 license = licenses.gpl2Only; 39 platforms = [ "x86_64-linux" ]; 40 mainProgram = "cpufreq-set"; 41 }; 42}