nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, fetchFromGitHub
4, meson
5, ninja
6, pkg-config
7, libxkbcommon
8, pango
9, which
10, git
11, cairo
12, libxcb
13, xcbutil
14, xcbutilwm
15, xcbutilxrm
16, xcb-util-cursor
17, libstartup_notification
18, bison
19, flex
20, librsvg
21, check
22, glib
23, buildPackages
24}:
25
26stdenv.mkDerivation rec {
27 pname = "rofi-unwrapped";
28 version = "1.7.5";
29
30 src = fetchFromGitHub {
31 owner = "davatorium";
32 repo = "rofi";
33 rev = version;
34 fetchSubmodules = true;
35 sha256 = "sha256-3XFusKeckagEPfbLtt1xAVTEfn1Qebdi/Iq1AYbHCR4=";
36 };
37
38 preConfigure = ''
39 patchShebangs "script"
40 # root not present in build /etc/passwd
41 sed -i 's/~root/~nobody/g' test/helper-expand.c
42 '';
43
44 depsBuildBuild = [ buildPackages.stdenv.cc pkg-config glib ];
45 nativeBuildInputs = [ meson ninja pkg-config flex bison ];
46 buildInputs = [
47 libxkbcommon
48 pango
49 cairo
50 git
51 librsvg
52 check
53 libstartup_notification
54 libxcb
55 xcbutil
56 xcbutilwm
57 xcbutilxrm
58 xcb-util-cursor
59 which
60 ];
61
62 doCheck = false;
63
64 meta = with lib; {
65 description = "Window switcher, run dialog and dmenu replacement";
66 homepage = "https://github.com/davatorium/rofi";
67 license = licenses.mit;
68 maintainers = with maintainers; [ bew ];
69 platforms = with platforms; linux;
70 };
71}