@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig
2+, libX11, libXinerama, libXft, pango
3+, i3Support ? false, i3
4+}:
5+
6+stdenv.mkDerivation rec {
7+ name = "rofi-${version}";
8+ version = "0.15.2";
9+
10+ src = fetchFromGitHub {
11+ repo = "rofi";
12+ owner = "DaveDavenport";
13+ rev = "${version}";
14+ sha256 = "0b8k5g2fpqrz1yac09kmfk4caxcc107qq4yhncnl159xdxw66vz8";
15+ };
16+
17+ buildInputs = [ autoconf automake pkgconfig libX11 libXinerama libXft pango
18+ ] ++ stdenv.lib.optional i3Support i3;
19+
20+ preConfigure = ''
21+ autoreconf -vif
22+ '';
23+
24+ meta = {
25+ description = "Window switcher, run dialog and dmenu replacement";
26+ homepage = https://davedavenport.github.io/rofi;
27+ license = stdenv.lib.licenses.mit;
28+ };
29+}