i7z: update to 0.27.2, cleanup build, add git repository to metadata.

This commit is contained in:
Evgeny Egorochkin 2013-10-18 22:59:36 +03:00
parent 5c1bafa4c3
commit a3757a2f67

View file

@ -1,19 +1,15 @@
{ stdenv, fetchurl, qt4, ncurses}:
stdenv.mkDerivation rec {
name = "i7z-0.27.1";
name = "i7z-0.27.2";
src = fetchurl {
url = "http://i7z.googlecode.com/files/${name}.tar.gz";
sha256 = "0n3pry1qmpq4basnny3gddls2zlwz0813ixnas87092rvlgjhbc6";
sha256 = "1wa7ix6m75wl3k2n88sz0x8cckvlzqklja2gvzqfw5rcfdjjvxx7";
};
buildInputs = [qt4 ncurses];
patchPhase = ''
substituteInPlace Makefile --replace "/usr/sbin" "$out/sbin"
'';
buildPhase = ''
make
cd GUI
@ -24,15 +20,15 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
pwd
ensureDir $out/sbin
make install
make install prefix=$out
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;
repositories.git = https://github.com/ajaiantilal/i7z.git;
license = "GPLv2";
maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
};