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