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

33 lines
1001 B
Nix
Raw Normal View History

2016-08-13 13:30:07 -07:00
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxkbcommon, pango
, cairo, glib, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
2015-02-04 16:03:09 -08:00
}:
stdenv.mkDerivation rec {
2016-08-13 13:30:07 -07:00
version = "1.2.0";
2015-02-04 16:03:09 -08:00
name = "rofi-${version}";
2015-06-18 15:10:01 -07:00
src = fetchurl {
2016-04-24 08:55:20 -07:00
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.xz";
2016-08-13 13:30:07 -07:00
sha256 = "0xxx0xpxhrhlhi2axq9867zqrhwqavc1qrr833k1xr0pvm5m0aqc";
2015-02-04 16:03:09 -08:00
};
2016-04-24 08:55:20 -07:00
preConfigure = ''
patchShebangs "script"
# root not present in build /etc/passwd
sed -i 's/~root/~nobody/g' test/helper-expand.c
'';
2016-08-13 13:30:07 -07:00
buildInputs = [ autoreconfHook pkgconfig libxkbcommon pango cairo
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm
];
doCheck = true;
2015-02-04 16:03:09 -08: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 ];
platforms = with platforms; unix;
2015-02-04 16:03:09 -08:00
};
}