mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
powertop: add homepage, cleanup
This commit is contained in:
parent
c66124e9b7
commit
f30f7d0cff
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user