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