mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxkbcommon, pango, which, git
|
|
, cairo, glib, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
|
|
, bison, flex, librsvg, check
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.4.2";
|
|
name = "rofi-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.gz";
|
|
sha256 = "0ys7grazqz5hw3nx2393df54ykcd5gw0zn66kik5fvzijpg3qfcx";
|
|
};
|
|
|
|
preConfigure = ''
|
|
patchShebangs "script"
|
|
# root not present in build /etc/passwd
|
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
|
|
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
|
|
];
|
|
doCheck = true;
|
|
|
|
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;
|
|
};
|
|
}
|