about summary refs log tree commit diff
path: root/pkgs/applications/misc/rofi-top/default.nix
blob: 328eca9da894f5516e54502019380c8b00fa26b9 (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
45
46
47
48
49
50
51
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, cairo
, glib
, gobject-introspection
, libgtop
, pkg-config
, rofi-unwrapped
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
  pname = "rofi-top";
  version = "unstable-2017-10-16";

  src = fetchFromGitHub {
    owner = "davatorium";
    repo = pname;
    rev = "9416addf91dd1bd25dfd5a8c5f1c7297c444408e";
    sha256 = "sha256-lNsmx1xirepITpUD30vpcs5slAQYQcvDW8FkA2K9JtU=";
  };

  patches = [
    ./0001-Patch-plugindir-to-output.patch
    ./0002-Patch-add-cairo.patch
  ];

  nativeBuildInputs = [
    autoreconfHook
    gobject-introspection
    pkg-config
    wrapGAppsHook
  ];

  buildInputs = [
    cairo
    glib
    libgtop
    rofi-unwrapped
  ];

  meta = with lib; {
    description = "A plugin for rofi that emulates top behaviour";
    homepage = "https://github.com/davatorium/rofi-top";
    license = licenses.mit;
    maintainers = with maintainers; [ aacebedo ];
    platforms = platforms.linux;
  };
}