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

71 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
2021-12-11 00:40:11 +00:00
, meson
, ninja
, pkg-config
, libxkbcommon
, pango
, which
, git
, cairo
, libxcb
, xcbutil
, xcbutilwm
, xcbutilxrm
, xcb-util-cursor
, libstartup_notification
, bison
, flex
, librsvg
, check
2015-02-05 00:03:09 +00:00
}:
stdenv.mkDerivation rec {
pname = "rofi-unwrapped";
2021-12-11 00:40:11 +00:00
version = "1.7.2";
2015-02-05 00:03:09 +00:00
src = fetchFromGitHub {
owner = "davatorium";
repo = "rofi";
rev = version;
fetchSubmodules = true;
2021-12-11 00:40:11 +00:00
sha256 = "vre8kFou01P7S6KBBtfzvfFP554mhV+d6rjvY+GfWXk=";
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
'';
2021-12-11 00:40:11 +00:00
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [
libxkbcommon
pango
cairo
git
bison
flex
librsvg
check
libstartup_notification
libxcb
xcbutil
xcbutilwm
xcbutilxrm
xcb-util-cursor
which
2016-08-13 20:30:07 +00:00
];
2018-03-11 17:24:08 +00:00
doCheck = false;
2015-02-05 00:03:09 +00:00
meta = with lib; {
description = "Window switcher, run dialog and dmenu replacement";
homepage = "https://github.com/davatorium/rofi";
license = licenses.mit;
maintainers = with maintainers; [ bew ];
platforms = with platforms; linux;
2015-02-05 00:03:09 +00:00
};
}