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

32 lines
997 B
Nix
Raw Normal View History

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