nixpkgs/pkgs/os-specific/linux/i7z/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, ncurses
2018-05-15 04:39:51 +00:00
, withGui ? false, qt4 ? null }:
stdenv.mkDerivation rec {
name = "i7z-${version}";
version = "0.27.3";
src = fetchFromGitHub {
owner = "DimitryAndric";
repo = "i7z";
rev = "v${version}";
sha256 = "0l8wz0ffb27nkwchc606js652spk8masy3kjmzh7ygipwsary5ds";
};
2018-05-15 04:39:51 +00:00
buildInputs = [ ncurses ] ++ lib.optional withGui qt4;
enableParallelBuilding = true;
2018-09-19 19:04:48 +00:00
postBuild = lib.optionalString withGui ''
2018-05-15 04:39:51 +00:00
cd GUI
qmake
make clean
make
cd ..
'';
2018-09-19 19:04:48 +00:00
makeFlags = [ "prefix=${placeholder "out"}" ];
2018-05-15 04:39:51 +00:00
2018-09-19 19:04:48 +00:00
postInstall = lib.optionalString withGui ''
install -Dm755 GUI/i7z_GUI $out/bin/i7z-gui
'';
2018-05-15 04:39:51 +00:00
meta = with lib; {
description = "A better i7 (and now i3, i5) reporting tool for Linux";
2018-09-19 19:04:48 +00:00
homepage = https://github.com/DimitryAndric/i7z;
repositories.git = https://github.com/DimitryAndric/i7z.git;
2018-05-15 04:39:51 +00:00
license = licenses.gpl2;
maintainers = with maintainers; [ bluescreen303 ];
# broken on ARM
platforms = [ "x86_64-linux" ];
};
}