i7z: update to 0.27.2, cleanup build, add git repository to metadata.
This commit is contained in:
parent
5c1bafa4c3
commit
a3757a2f67
|
@ -1,19 +1,15 @@
|
||||||
{ stdenv, fetchurl, qt4, ncurses}:
|
{ stdenv, fetchurl, qt4, ncurses}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "i7z-0.27.1";
|
name = "i7z-0.27.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://i7z.googlecode.com/files/${name}.tar.gz";
|
url = "http://i7z.googlecode.com/files/${name}.tar.gz";
|
||||||
sha256 = "0n3pry1qmpq4basnny3gddls2zlwz0813ixnas87092rvlgjhbc6";
|
sha256 = "1wa7ix6m75wl3k2n88sz0x8cckvlzqklja2gvzqfw5rcfdjjvxx7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [qt4 ncurses];
|
buildInputs = [qt4 ncurses];
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
substituteInPlace Makefile --replace "/usr/sbin" "$out/sbin"
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make
|
make
|
||||||
cd GUI
|
cd GUI
|
||||||
|
@ -24,15 +20,15 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
pwd
|
|
||||||
ensureDir $out/sbin
|
ensureDir $out/sbin
|
||||||
make install
|
make install prefix=$out
|
||||||
install -Dm755 GUI/i7z_GUI $out/sbin/i7z-gui
|
install -Dm755 GUI/i7z_GUI $out/sbin/i7z-gui
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A better i7 (and now i3, i5) reporting tool for Linux";
|
description = "A better i7 (and now i3, i5) reporting tool for Linux";
|
||||||
homepage = http://code.google.com/p/i7z;
|
homepage = http://code.google.com/p/i7z;
|
||||||
|
repositories.git = https://github.com/ajaiantilal/i7z.git;
|
||||||
license = "GPLv2";
|
license = "GPLv2";
|
||||||
maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
|
maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue