nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 mkDerivation,
3 lib,
4 fetchFromGitHub,
5
6 cmake,
7 pkg-config,
8 qtbase,
9 qttools,
10 qtx11extras,
11}:
12
13mkDerivation rec {
14 pname = "birdtray";
15 version = "1.11.4";
16
17 src = fetchFromGitHub {
18 owner = "gyunaev";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "sha256-rj8tPzZzgW0hXmq8c1LiunIX1tO/tGAaqDGJgCQda5M=";
22 };
23
24 nativeBuildInputs = [
25 cmake
26 pkg-config
27 ];
28 buildInputs = [
29 qtbase
30 qttools
31 qtx11extras
32 ];
33
34 # Wayland support is broken.
35 # https://github.com/gyunaev/birdtray/issues/113#issuecomment-621742315
36 qtWrapperArgs = [ "--set QT_QPA_PLATFORM xcb" ];
37
38 meta = with lib; {
39 description = "Mail system tray notification icon for Thunderbird";
40 mainProgram = "birdtray";
41 homepage = "https://github.com/gyunaev/birdtray";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ Flakebi ];
44 platforms = platforms.linux;
45 };
46}