aboutsummaryrefslogtreecommitdiff
path: root/.config/nixpkgs/packages/rofi/package.nix
blob: 420d2d23bb130b26253bd3f4a07f0d695756032b (plain)
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
{ stdenv, lib, fetchgit, autoreconfHook, pkg-config, libxkbcommon, pango
, which, git, cairo, libxcb, xcbutil, xcbutilwm, xcbutilxrm, xcb-util-cursor
, libstartup_notification, bison, flex, librsvg, check }:

stdenv.mkDerivation rec {
  pname = "rofi-unwrapped";
  version = "1.7.0";

  src = fetchgit {
    rev = version;
    fetchSubmodules = true;
    url = "https://github.com/davatorium/rofi.git";
    sha256 = "03wdy56b3g8p2czb0qydrddyyhj3x037pirnhyqr5qbfczb9a63v";
  };

  preConfigure = ''
    patchShebangs "script"
    # root not present in build /etc/passwd
    sed -i 's/~root/~nobody/g' test/helper-expand.c
  '';

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [
    libxkbcommon
    pango
    cairo
    git
    bison
    flex
    librsvg
    check
    libstartup_notification
    libxcb
    xcbutil
    xcbutilwm
    xcbutilxrm
    xcb-util-cursor
    which
  ];

  doCheck = false;

  meta = with lib; {
    license = licenses.mit;
    platforms = with platforms; linux;
    homepage = "https://github.com/davatorium/rofi";
    description = "Window switcher, run dialog and dmenu replacement";
  };
}