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

32 lines
1019 B
Nix
Raw Normal View History

{ stdenv, fetchurl, autoreconfHook, pkgconfig, libX11, libxkbcommon, pango
, cairo, glib, libxcb, xcbutil, xcbutilwm, which, git, libstartup_notification
, i3Support ? false, i3
2015-02-04 16:03:09 -08:00
}:
stdenv.mkDerivation rec {
version = "1.0.1";
2015-02-04 16:03:09 -08:00
name = "rofi-${version}";
2015-06-18 15:10:01 -07:00
src = fetchurl {
2016-04-24 08:55:20 -07:00
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.xz";
sha256 = "01jxml9vk4cw7pngpan7dipmb98s6ibh6f0023lw3hbgxy650637";
2015-02-04 16:03:09 -08:00
};
2016-04-24 08:55:20 -07: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
cairo libstartup_notification libxcb xcbutil xcbutilwm which git
] ++ stdenv.lib.optional i3Support i3;
2015-02-04 16:03:09 -08: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 ];
2015-02-04 16:03:09 -08:00
};
}