2018-05-15 05:39:51 +01:00
|
|
|
{ stdenv, lib, fetchurl, ncurses
|
|
|
|
, withGui ? false, qt4 ? null }:
|
2012-02-06 19:09:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-10-18 20:59:36 +01:00
|
|
|
name = "i7z-0.27.2";
|
2012-02-06 19:09:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-27 00:44:19 +01:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/i7z/${name}.tar.gz";
|
2013-10-18 20:59:36 +01:00
|
|
|
sha256 = "1wa7ix6m75wl3k2n88sz0x8cckvlzqklja2gvzqfw5rcfdjjvxx7";
|
2012-02-06 19:09:04 +00:00
|
|
|
};
|
|
|
|
|
2018-05-15 05:39:51 +01:00
|
|
|
buildInputs = [ ncurses ] ++ lib.optional withGui qt4;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2012-02-06 19:09:04 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2018-05-15 05:39:51 +01:00
|
|
|
runHook preBuild
|
|
|
|
|
2012-02-06 19:09:04 +00:00
|
|
|
make
|
2018-05-15 05:39:51 +01:00
|
|
|
${lib.optionalString withGui ''
|
|
|
|
cd GUI
|
|
|
|
qmake
|
|
|
|
make clean
|
|
|
|
make
|
|
|
|
cd ..
|
|
|
|
''}
|
|
|
|
|
|
|
|
runHook postBuild
|
2012-02-06 19:09:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-05-15 05:39:51 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/{bin,sbin}
|
2013-10-18 20:59:36 +01:00
|
|
|
make install prefix=$out
|
2018-05-15 05:39:51 +01:00
|
|
|
${lib.optionalString withGui ''
|
|
|
|
install -Dm755 GUI/i7z_GUI $out/bin/i7z-gui
|
|
|
|
''}
|
|
|
|
mv $out/sbin/* $out/bin/
|
|
|
|
rmdir $out/sbin
|
|
|
|
|
|
|
|
runHook postInstall
|
2012-02-06 19:09:04 +00:00
|
|
|
'';
|
|
|
|
|
2018-05-15 05:39:51 +01:00
|
|
|
meta = with lib; {
|
2012-02-06 19:09:04 +00:00
|
|
|
description = "A better i7 (and now i3, i5) reporting tool for Linux";
|
2017-10-27 00:44:19 +01:00
|
|
|
homepage = https://github.com/ajaiantilal/i7z;
|
2013-10-18 20:59:36 +01:00
|
|
|
repositories.git = https://github.com/ajaiantilal/i7z.git;
|
2018-05-15 05:39:51 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ bluescreen303 ];
|
|
|
|
# broken on ARM
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2012-02-06 19:09:04 +00:00
|
|
|
};
|
|
|
|
}
|