1{ lib
2, stdenv
3, fetchFromGitHub
4, pkg-config
5, ninja
6, meson
7, scdoc
8, wayland-protocols
9, wayland-scanner
10, freetype
11, harfbuzz
12, cairo
13, pango
14, wayland
15, libxkbcommon
16}:
17
18stdenv.mkDerivation rec {
19 pname = "tofi";
20 version = "0.9.1";
21
22 src = fetchFromGitHub {
23 owner = "philj56";
24 repo = pname;
25 rev = "v${version}";
26 sha256 = "sha256-lokp6Zmdt7WuAyuRnHBkKD4ydbNiQY7pEVY97Z62U90=";
27 };
28
29 depsBuildBuild = [ pkg-config ];
30 nativeBuildInputs = [
31 meson ninja pkg-config scdoc wayland-protocols wayland-scanner
32 ];
33 buildInputs = [ freetype harfbuzz cairo pango wayland libxkbcommon ];
34
35 meta = with lib; {
36 description = "Tiny dynamic menu for Wayland";
37 homepage = "https://github.com/philj56/tofi";
38 license = licenses.mit;
39 maintainers = with maintainers; [ fbergroth ];
40 platforms = platforms.linux;
41 };
42}