mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
06a56e8a10
- added myself as a maintainer
32 lines
1019 B
Nix
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 ];
|
|
};
|
|
}
|