about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/system/qjournalctl/default.nix
blob: 563d0904fc53f2959650265ae1f3a5c3ff52ad59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, stdenv
, fetchFromGitHub
, qtbase
, qmake
, pkg-config
, libssh
, wrapQtAppsHook
}:

stdenv.mkDerivation rec {
  pname = "qjournalctl";
  version = "0.6.4";

  src = fetchFromGitHub {
    owner = "pentix";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-anNNzqjbIaQI+MAwwMwzy6v4SKqi4u9F5IbFBErm4q8=";
  };

  postPatch = ''
    substituteInPlace qjournalctl.pro --replace /usr/ $out/
  '';

  nativeBuildInputs = [
    qmake
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [
    libssh
    qtbase
  ];

  meta = with lib; {
    description = "Qt-based graphical user interface for systemd's journalctl command";
    homepage = "https://github.com/pentix/qjournalctl";
    license = licenses.gpl3Only;
    platforms = platforms.all;
    maintainers = with maintainers; [ dtzWill srgom romildo ];
  };
}