1{ lib
2, stdenv
3, fetchFromGitHub
4, qtbase
5, qmake
6, pkg-config
7, libssh
8, wrapQtAppsHook
9}:
10
11stdenv.mkDerivation rec {
12 pname = "qjournalctl";
13 version = "0.6.3";
14
15 src = fetchFromGitHub {
16 owner = "pentix";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "0j27cmfq29mwrbjfrrwi6m1grcamhbfhk47xzlfsx5wr2q9m6qkz";
20 };
21
22 postPatch = ''
23 substituteInPlace qjournalctl.pro --replace /usr/ $out/
24 '';
25
26 nativeBuildInputs = [
27 qmake
28 pkg-config
29 wrapQtAppsHook
30 ];
31
32 buildInputs = [
33 libssh
34 qtbase
35 ];
36
37 meta = with lib; {
38 description = "Qt-based graphical user interface for systemd's journalctl command";
39 homepage = "https://github.com/pentix/qjournalctl";
40 license = licenses.gpl3Only;
41 platforms = platforms.all;
42 maintainers = with maintainers; [ dtzWill srgom romildo ];
43 };
44}