Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / rofi-top / default.nix
blob328eca9da894f5516e54502019380c8b00fa26b9
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , cairo
6 , glib
7 , gobject-introspection
8 , libgtop
9 , pkg-config
10 , rofi-unwrapped
11 , wrapGAppsHook
14 stdenv.mkDerivation rec {
15   pname = "rofi-top";
16   version = "unstable-2017-10-16";
18   src = fetchFromGitHub {
19     owner = "davatorium";
20     repo = pname;
21     rev = "9416addf91dd1bd25dfd5a8c5f1c7297c444408e";
22     sha256 = "sha256-lNsmx1xirepITpUD30vpcs5slAQYQcvDW8FkA2K9JtU=";
23   };
25   patches = [
26     ./0001-Patch-plugindir-to-output.patch
27     ./0002-Patch-add-cairo.patch
28   ];
30   nativeBuildInputs = [
31     autoreconfHook
32     gobject-introspection
33     pkg-config
34     wrapGAppsHook
35   ];
37   buildInputs = [
38     cairo
39     glib
40     libgtop
41     rofi-unwrapped
42   ];
44   meta = with lib; {
45     description = "A plugin for rofi that emulates top behaviour";
46     homepage = "https://github.com/davatorium/rofi-top";
47     license = licenses.mit;
48     maintainers = with maintainers; [ aacebedo ];
49     platforms = platforms.linux;
50   };