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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.3 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
2022-01-27 02:52:39 +00:00
, glib
, buildPackages
2015-02-05 00:03:09 +00:00
}:
stdenv.mkDerivation rec {
pname = "rofi-unwrapped";
version = "1.7.5";
2015-02-05 00:03:09 +00:00
src = fetchFromGitHub {
owner = "davatorium";
repo = "rofi";
rev = version;
fetchSubmodules = true;
hash = "sha256-3XFusKeckagEPfbLtt1xAVTEfn1Qebdi/Iq1AYbHCR4=";
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
'';
2022-01-27 02:52:39 +00:00
depsBuildBuild = [ buildPackages.stdenv.cc pkg-config glib ];
nativeBuildInputs = [ meson ninja pkg-config flex bison ];
buildInputs = [
libxkbcommon
pango
cairo
git
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;
2023-08-04 19:10:05 +00:00
mainProgram = "rofi";
2015-02-05 00:03:09 +00:00
};
}