nixpkgs/pkgs/applications/misc/rofi/default.nix

33 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, autoreconfHook, pkgconfig, libX11, libxkbcommon, pango
2016-06-19 15:33:30 +00:00
, cairo, glib, libxcb, xcbutil, xcbutilwm, libstartup_notification
, i3Support ? false, i3
2015-02-05 00:03:09 +00:00
}:
stdenv.mkDerivation rec {
2016-06-19 15:33:30 +00:00
version = "1.1.0";
2015-02-05 00:03:09 +00:00
name = "rofi-${version}";
2015-06-18 22:10:01 +00:00
src = fetchurl {
2016-04-24 15:55:20 +00:00
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.xz";
2016-06-19 15:33:30 +00:00
sha256 = "1l8vl0mh7i0b1ycifqpg6392f5i4qxlv003m126skfk6fnlfq8hn";
2015-02-05 00:03:09 +00:00
};
2016-04-24 15:55:20 +00:00
preConfigure = ''
patchShebangs "script"
# root not present in build /etc/passwd
sed -i 's/~root/~nobody/g' test/helper-expand.c
'';
buildInputs = [ autoreconfHook pkgconfig libX11 libxkbcommon pango
2016-06-19 15:33:30 +00:00
cairo libstartup_notification libxcb xcbutil xcbutilwm
] ++ stdenv.lib.optional i3Support i3;
2015-02-05 00:03:09 +00:00
meta = with stdenv.lib; {
description = "Window switcher, run dialog and dmenu replacement";
homepage = https://davedavenport.github.io/rofi;
license = licenses.mit;
maintainers = with maintainers; [ mbakke garbas ];
platforms = with platforms; unix;
2015-02-05 00:03:09 +00:00
};
}