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

37 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl
, autoreconfHook, pkg-config, libxkbcommon, pango, which, git
, cairo, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
2017-10-14 22:08:19 +02:00
, bison, flex, librsvg, check
2015-02-05 01:03:09 +01:00
}:
stdenv.mkDerivation rec {
pname = "rofi-unwrapped";
2020-11-26 20:05:25 +01:00
version = "1.6.1";
2015-02-05 01:03:09 +01:00
2015-06-19 00:10:01 +02:00
src = fetchurl {
url = "https://github.com/davatorium/rofi/releases/download/${version}/rofi-${version}.tar.gz";
2020-11-26 20:05:25 +01:00
sha256 = "04glljqbf9ckkc6x6fv4x1gqmy468n1agya0kd8rxdvz24wzf7cd";
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
'';
nativeBuildInputs = [ autoreconfHook pkg-config ];
2017-10-14 22:08:19 +02:00
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
2016-12-31 15:22:22 +01:00
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
2016-08-13 22:30:07 +02:00
];
2018-03-11 18:24:08 +01:00
doCheck = false;
2015-02-05 01:03:09 +01:00
meta = with lib; {
description = "Window switcher, run dialog and dmenu replacement";
homepage = "https://github.com/davatorium/rofi";
license = licenses.mit;
maintainers = with maintainers; [ mbakke ];
platforms = with platforms; linux;
2015-02-05 01:03:09 +01:00
};
}