diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2007-09-23 10:59:54 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2007-09-23 10:59:54 +0000 |
commit | e0d357058b5985d317651d91005e43ea16ae4fd7 (patch) | |
tree | 92d485e6e855a1be76c7c6592ffcc1bc2484115e /pkgs/os-specific/linux/powertop | |
parent | 3595fc845dc45716a32dcc89aad556dc6efcea5a (diff) | |
download | nixpkgs-e0d357058b5985d317651d91005e43ea16ae4fd7.tar nixpkgs-e0d357058b5985d317651d91005e43ea16ae4fd7.tar.gz nixpkgs-e0d357058b5985d317651d91005e43ea16ae4fd7.tar.bz2 nixpkgs-e0d357058b5985d317651d91005e43ea16ae4fd7.tar.lz nixpkgs-e0d357058b5985d317651d91005e43ea16ae4fd7.tar.xz nixpkgs-e0d357058b5985d317651d91005e43ea16ae4fd7.tar.zst nixpkgs-e0d357058b5985d317651d91005e43ea16ae4fd7.zip |
add powertop (www.linuxpowertop.org)
svn path=/nixpkgs/trunk/; revision=9358
Diffstat (limited to 'pkgs/os-specific/linux/powertop')
-rw-r--r-- | pkgs/os-specific/linux/powertop/default.nix | 11 | ||||
-rw-r--r-- | pkgs/os-specific/linux/powertop/powertop-1.8.patch | 13 |
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/powertop/default.nix b/pkgs/os-specific/linux/powertop/default.nix new file mode 100644 index 00000000000..40268e123dd --- /dev/null +++ b/pkgs/os-specific/linux/powertop/default.nix @@ -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]; +} diff --git a/pkgs/os-specific/linux/powertop/powertop-1.8.patch b/pkgs/os-specific/linux/powertop/powertop-1.8.patch new file mode 100644 index 00000000000..0a0d0e55382 --- /dev/null +++ b/pkgs/os-specific/linux/powertop/powertop-1.8.patch @@ -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 |