nixpkgs/pkgs/applications/misc/rofi/default.nix
Rok Garbas 06a56e8a10 rofi: 1.0.0 -> 1.0.1
- added myself as a maintainer
2016-05-15 06:16:24 +02:00

32 lines
1019 B
Nix

{ stdenv, fetchurl, autoreconfHook, pkgconfig, libX11, libxkbcommon, pango
, cairo, glib, libxcb, xcbutil, xcbutilwm, which, git, libstartup_notification
, i3Support ? false, i3
}:
stdenv.mkDerivation rec {
version = "1.0.1";
name = "rofi-${version}";
src = fetchurl {
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.xz";
sha256 = "01jxml9vk4cw7pngpan7dipmb98s6ibh6f0023lw3hbgxy650637";
};
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;
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 ];
};
}