2012-09-07 13:27:32 +02:00
|
|
|
{ stdenv, fetchurl, gettext, libnl, ncurses, pciutils, pkgconfig, zlib }:
|
2007-09-23 12:59:54 +02:00
|
|
|
|
2012-06-11 12:28:21 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-13 13:06:29 +01:00
|
|
|
name = "powertop-2.8";
|
2013-01-15 18:43:53 +01:00
|
|
|
|
2007-09-23 12:59:54 +02:00
|
|
|
src = fetchurl {
|
2014-08-14 12:54:21 +02:00
|
|
|
url = "https://01.org/sites/default/files/downloads/powertop/${name}.tar.gz";
|
2016-01-13 13:06:29 +01:00
|
|
|
sha256 = "0nlwazxbnn0k6q5f5b09wdhw0f194lpzkp3l7vxansqhfczmcyx8";
|
2007-09-23 12:59:54 +02:00
|
|
|
};
|
2012-06-11 12:28:21 +02:00
|
|
|
|
2012-09-07 13:27:32 +02:00
|
|
|
buildInputs = [ gettext libnl ncurses pciutils pkgconfig zlib ];
|
2012-06-11 12:28:21 +02:00
|
|
|
|
2015-10-15 20:25:43 +02:00
|
|
|
postPatch = ''
|
2015-07-08 14:10:33 +02:00
|
|
|
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
|
|
|
|
'';
|
|
|
|
|
2011-10-13 10:53:47 +02:00
|
|
|
meta = {
|
|
|
|
description = "Analyze power consumption on Intel-based laptops";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-10-13 10:53:47 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2007-09-23 12:59:54 +02:00
|
|
|
}
|