at 16.09-beta 30 lines 788 B view raw
1{ stdenv, fetchurl, libtool, gettext }: 2 3assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"; 4 5stdenv.mkDerivation rec { 6 name = "cpufrequtils-008"; 7 8 src = fetchurl { 9 url = "http://ftp.be.debian.org/pub/linux/utils/kernel/cpufreq/${name}.tar.gz"; 10 sha256 = "127i38d4w1hv2dzdy756gmbhq25q3k34nqb2s0xlhsfhhdqs0lq0"; 11 }; 12 13 patches = [ 14 # I am not 100% sure that this is ok, but it breaks repeatable builds. 15 ./remove-pot-creation-date.patch 16 ]; 17 18 patchPhase = '' 19 sed -e "s@= /usr/bin/@= @g" \ 20 -e "s@/usr/@$out/@" \ 21 -i Makefile 22 ''; 23 24 buildInputs = [ stdenv.cc.libc.linuxHeaders libtool gettext ]; 25 26 meta = { 27 description = "Tools to display or change the CPU governor settings"; 28 platforms = stdenv.lib.platforms.linux; 29 }; 30}