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

36 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, autoreconfHook, pkgconfig
2016-04-24 15:55:20 +00:00
, libX11, libxkbcommon, pango, cairo, glib
, libxcb, xcbutil, xcbutilwm, which, git
2015-10-25 22:46:37 +00:00
, libstartup_notification, i3Support ? false, i3
2015-02-05 00:03:09 +00:00
}:
stdenv.mkDerivation rec {
name = "rofi-${version}";
2016-04-24 15:55:20 +00:00
version = "1.0.0";
2015-02-05 00:03:09 +00:00
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";
sha256 = "0ard95pjgykafm5ga8lfy7x206f07lrc6kara5s9irlhdgblq2m5";
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
cairo libstartup_notification libxcb xcbutil xcbutilwm
which git
2015-02-05 00:03:09 +00:00
] ++ stdenv.lib.optional i3Support i3;
2016-04-24 15:55:20 +00:00
doCheck = true;
2015-02-05 00:03:09 +00:00
meta = {
description = "Window switcher, run dialog and dmenu replacement";
homepage = https://davedavenport.github.io/rofi;
license = stdenv.lib.licenses.mit;
2015-06-18 22:10:01 +00:00
maintainers = [ stdenv.lib.maintainers.mbakke ];
2015-02-05 00:03:09 +00:00
};
}