mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, libxkbcommon
|
|
, pango
|
|
, which
|
|
, git
|
|
, cairo
|
|
, libxcb
|
|
, xcbutil
|
|
, xcbutilwm
|
|
, xcbutilxrm
|
|
, xcb-util-cursor
|
|
, libstartup_notification
|
|
, bison
|
|
, flex
|
|
, librsvg
|
|
, check
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rofi-unwrapped";
|
|
version = "1.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "davatorium";
|
|
repo = "rofi";
|
|
rev = version;
|
|
fetchSubmodules = true;
|
|
sha256 = "vre8kFou01P7S6KBBtfzvfFP554mhV+d6rjvY+GfWXk=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
patchShebangs "script"
|
|
# root not present in build /etc/passwd
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
'';
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
buildInputs = [
|
|
libxkbcommon
|
|
pango
|
|
cairo
|
|
git
|
|
bison
|
|
flex
|
|
librsvg
|
|
check
|
|
libstartup_notification
|
|
libxcb
|
|
xcbutil
|
|
xcbutilwm
|
|
xcbutilxrm
|
|
xcb-util-cursor
|
|
which
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
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;
|
|
};
|
|
}
|