1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/os-specific/linux/powertop/default.nix
Florian Friesdorf 9d12557783 powertop: modprobe configs if /proc/config.gz is missing
svn path=/nixpkgs/trunk/; revision=29822
2011-10-13 13:05:58 +00:00

22 lines
608 B
Nix

{stdenv, fetchurl, ncurses, gettext}:
stdenv.mkDerivation {
name = "powertop-1.13";
src = fetchurl {
url = http://www.lesswatts.org/projects/powertop/download/powertop-1.13.tar.gz;
sha256 = "164dqp6msdaxpi2bmvwawasyrf1sfvanlc9ddp97v1wnjh46dj1b";
};
patches = [
./powertop-1.13.patch
./inotify_user.patch
./modprobe_configs.patch
];
buildInputs = [ncurses gettext];
meta = {
description = "Analyze power consumption on Intel-based laptops";
license = "GPLv2";
maintainers = [ stdenv.lib.maintainers.chaoflow ];
platforms = stdenv.lib.platforms.linux;
};
}