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

36 lines
1.1 KiB
Nix
Raw Normal View History

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