forked from mirrors/nixpkgs
add powertop (www.linuxpowertop.org)
svn path=/nixpkgs/trunk/; revision=9358
This commit is contained in:
parent
3595fc845d
commit
e0d357058b
3 changed files with 28 additions and 0 deletions
11
pkgs/os-specific/linux/powertop/default.nix
Normal file
11
pkgs/os-specific/linux/powertop/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{stdenv, fetchurl, ncurses}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "powertop-1.8";
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://linuxpowertop.org/download/powertop-1.8.tar.gz;
|
||||||
|
sha256 = "0fmdbg00yfzhw5ldc5g6il602lvpmhi9dri4l0pc2ndgwm3fl9bk";
|
||||||
|
};
|
||||||
|
patches = [./powertop-1.8.patch];
|
||||||
|
buildInputs = [ncurses];
|
||||||
|
}
|
13
pkgs/os-specific/linux/powertop/powertop-1.8.patch
Normal file
13
pkgs/os-specific/linux/powertop/powertop-1.8.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff -ru powertop-1.8/Makefile powertop-1.8.new/Makefile
|
||||||
|
--- powertop-1.8/Makefile 2007-08-19 19:43:08.000000000 +0200
|
||||||
|
+++ powertop-1.8.new/Makefile 2007-09-23 12:54:59.000000000 +0200
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
-BINDIR=/usr/bin
|
||||||
|
-LOCALESDIR=/usr/share/locale
|
||||||
|
-MANDIR=/usr/share/man/man1
|
||||||
|
+BINDIR=${out}/bin
|
||||||
|
+LOCALESDIR=${out}/share/locale
|
||||||
|
+MANDIR=${out}/share/man/man1
|
||||||
|
WARNFLAGS=-Wall -W -Wshadow
|
||||||
|
CFLAGS?=-Os -g ${WARNFLAGS}
|
||||||
|
CC?=gcc
|
|
@ -2895,6 +2895,10 @@ rec {
|
||||||
inherit stdenv fetchurl pam libxcrypt;
|
inherit stdenv fetchurl pam libxcrypt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
powertop = import ../os-specific/linux/powertop {
|
||||||
|
inherit fetchurl stdenv ncurses;
|
||||||
|
};
|
||||||
|
|
||||||
procps = import ../os-specific/linux/procps {
|
procps = import ../os-specific/linux/procps {
|
||||||
inherit fetchurl stdenv ncurses;
|
inherit fetchurl stdenv ncurses;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue