qps: init at 1.10.16

This commit is contained in:
romildo 2016-10-10 08:08:00 -03:00
parent d4eaac27bf
commit 6757b20cf4
3 changed files with 47 additions and 0 deletions

View File

@ -61,6 +61,7 @@ in
pkgs.lxqt.obconf-qt
pkgs.lxqt.pavucontrol-qt
pkgs.lxqt.pcmanfm-qt
pkgs.lxqt.qps
pkgs.lxqt.qterminal
pkgs.lxqt.qtermwidget
pkgs.menu-cache

View File

@ -59,6 +59,7 @@ let
compton-conf = callPackage ./optional/compton-conf { };
obconf-qt = callPackage ./optional/obconf-qt { };
lximage-qt = callPackage ./optional/lximage-qt { };
qps = callPackage ./optional/qps { };
};

View File

@ -0,0 +1,45 @@
{ stdenv, fetchFromGitHub, cmake, qt5, makeDesktopItem }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "qps";
version = "1.10.16";
srcs = fetchFromGitHub {
owner = "QtDesktop";
repo = pname;
rev = "v${version}";
sha256 = "1s6hvqfv9hv1cl5pfsmghqn1zqhibr4plq3glzgd8s7swwdnsvjj";
};
desktopItem = makeDesktopItem {
name = "qps";
exec = "qps";
icon = "qps";
comment = "Visual process manager - Qt version of ps/top";
desktopName = "qps";
genericName = meta.description;
categories = "System;";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ qt5.qtbase qt5.qtx11extras ];
installPhase = ''
mkdir -p $out/{bin,share/{man/man1,doc,icons}}
cp -a src/qps $out/bin/
cp -a ../README.md $out/share/doc/
cp -a ../qps.1 $out/share/man/man1/
cp -a ../icon/icon.xpm $out/share/icons/qps.xpm
ln -sv "${desktopItem}/share/applications" $out/share/
'';
meta = with stdenv.lib; {
description = "The Qt process manager";
homepage = https://github.com/QtDesktop/qps;
license = licenses.gpl2;
maintainers = with maintainers; [ romildo ];
platforms = with platforms; unix;
};
}