git.iko.soy/typeable/nixpkgs
on master help sign in
qps: init at 1.10.16
commit6757b20cf4948c712fc2ebf1b55bf7179d3a44ac authorromildo <malaquias@gmail.com> dateMon 10 Oct 2016, 08:08 (10 years ago) parentd4eaac2
3 files changed+47
nixos/modules/services/x11/desktop-managers/lxqt.nix+1 pkgs/desktops/lxqt/default.nix+1 pkgs/desktops/lxqt/optional/qps/default.nix+45
nixos/modules/services/x11/desktop-managers/lxqt.nix+1
@@ -61,6 +61,7 @@ in
6161 pkgs.lxqt.obconf-qt
6262 pkgs.lxqt.pavucontrol-qt
6363 pkgs.lxqt.pcmanfm-qt
64+ pkgs.lxqt.qps
6465 pkgs.lxqt.qterminal
6566 pkgs.lxqt.qtermwidget
6667 pkgs.menu-cache
pkgs/desktops/lxqt/default.nix+1
@@ -59,6 +59,7 @@ let
5959 compton-conf = callPackage ./optional/compton-conf { };
6060 obconf-qt = callPackage ./optional/obconf-qt { };
6161 lximage-qt = callPackage ./optional/lximage-qt { };
62+ qps = callPackage ./optional/qps { };
6263
6364 };
6465
pkgs/desktops/lxqt/optional/qps/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ stdenv, fetchFromGitHub, cmake, qt5, makeDesktopItem }:
2+
3+stdenv.mkDerivation rec {
4+ name = "${pname}-${version}";
5+ pname = "qps";
6+ version = "1.10.16";
7+
8+ srcs = fetchFromGitHub {
9+ owner = "QtDesktop";
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "1s6hvqfv9hv1cl5pfsmghqn1zqhibr4plq3glzgd8s7swwdnsvjj";
13+ };
14+
15+ desktopItem = makeDesktopItem {
16+ name = "qps";
17+ exec = "qps";
18+ icon = "qps";
19+ comment = "Visual process manager - Qt version of ps/top";
20+ desktopName = "qps";
21+ genericName = meta.description;
22+ categories = "System;";
23+ };
24+
25+ nativeBuildInputs = [ cmake ];
26+
27+ buildInputs = [ qt5.qtbase qt5.qtx11extras ];
28+
29+ installPhase = ''
30+ mkdir -p $out/{bin,share/{man/man1,doc,icons}}
31+ cp -a src/qps $out/bin/
32+ cp -a ../README.md $out/share/doc/
33+ cp -a ../qps.1 $out/share/man/man1/
34+ cp -a ../icon/icon.xpm $out/share/icons/qps.xpm
35+ ln -sv "${desktopItem}/share/applications" $out/share/
36+ '';
37+
38+ meta = with stdenv.lib; {
39+ description = "The Qt process manager";
40+ homepage = https://github.com/QtDesktop/qps;
41+ license = licenses.gpl2;
42+ maintainers = with maintainers; [ romildo ];
43+ platforms = with platforms; unix;
44+ };
45+}