powertop: add homepage, cleanup

This commit is contained in:
Franz Pletz 2016-10-13 22:01:59 +02:00
parent c66124e9b7
commit f30f7d0cff
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -8,17 +8,19 @@ stdenv.mkDerivation rec {
sha256 = "0nlwazxbnn0k6q5f5b09wdhw0f194lpzkp3l7vxansqhfczmcyx8";
};
buildInputs = [ gettext libnl ncurses pciutils pkgconfig zlib ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gettext libnl ncurses pciutils zlib ];
postPatch = ''
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
substituteInPlace src/calibrate/calibrate.cpp --replace "/usr/bin/xset" "xset"
'';
meta = {
meta = with stdenv.lib; {
description = "Analyze power consumption on Intel-based laptops";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.chaoflow ];
platforms = stdenv.lib.platforms.linux;
homepage = https://01.org/powertop;
license = licenses.gpl2;
maintainers = with maintainers; [ chaoflow fpletz ];
platforms = platforms.linux;
};
}