mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
i7z: better cpu frequency/turbo boost checker for intel core i{3,5,7}
svn path=/nixpkgs/trunk/; revision=32082
This commit is contained in:
parent
5a34b4f9a1
commit
796f0ad5bc
40
pkgs/os-specific/linux/i7z/default.nix
Normal file
40
pkgs/os-specific/linux/i7z/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ stdenv, fetchurl, qt4, ncurses}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "i7z-0.27.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://i7z.googlecode.com/files/${name}.tar.gz";
|
||||
sha256 = "0n3pry1qmpq4basnny3gddls2zlwz0813ixnas87092rvlgjhbc6";
|
||||
};
|
||||
|
||||
buildInputs = [qt4 ncurses];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile --replace "/usr/sbin" "$out/sbin"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
cd GUI
|
||||
qmake
|
||||
make clean
|
||||
make
|
||||
cd ..
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
pwd
|
||||
ensureDir $out/sbin
|
||||
make install
|
||||
install -Dm755 GUI/i7z_GUI $out/sbin/i7z-gui
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A better i7 (and now i3, i5) reporting tool for Linux";
|
||||
homepage = http://code.google.com/p/i7z;
|
||||
license = "GPLv2";
|
||||
maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
|
||||
};
|
||||
}
|
||||
|
@ -5390,6 +5390,8 @@ let
|
||||
|
||||
hwdata = callPackage ../os-specific/linux/hwdata { };
|
||||
|
||||
i7z = callPackage ../os-specific/linux/i7z { };
|
||||
|
||||
ifplugd = callPackage ../os-specific/linux/ifplugd { };
|
||||
|
||||
iotop = callPackage ../os-specific/linux/iotop { };
|
||||
|
Loading…
Reference in New Issue
Block a user