2019-11-17 11:51:25 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, cmake
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-11-17 11:51:25 +00:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtx11extras
|
2020-06-16 07:49:27 +01:00
|
|
|
, qttranslations
|
2019-11-17 11:51:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "birdtray";
|
2020-10-23 19:09:46 +01:00
|
|
|
version = "1.9.0";
|
2019-11-17 11:51:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gyunaev";
|
|
|
|
repo = pname;
|
2020-10-23 19:09:46 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1469ng6zk0qx0qfsihrnlz1j9i1wk0hx4vqdaplz9mdpyxvmlryk";
|
2019-11-17 11:51:25 +00:00
|
|
|
};
|
|
|
|
|
2020-06-16 07:49:27 +01:00
|
|
|
patches = [
|
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
|
|
./fix-qttranslations-path.diff
|
|
|
|
];
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-11-17 11:51:25 +00:00
|
|
|
buildInputs = [
|
2020-04-20 09:56:02 +01:00
|
|
|
qtbase qttools qtx11extras
|
2019-11-17 11:51:25 +00:00
|
|
|
];
|
|
|
|
|
2020-06-16 07:49:27 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/birdtrayapp.cpp \
|
|
|
|
--subst-var-by qttranslations ${qttranslations}
|
|
|
|
'';
|
|
|
|
|
2021-03-17 17:03:31 +00:00
|
|
|
# Wayland support is broken.
|
|
|
|
# https://github.com/gyunaev/birdtray/issues/113#issuecomment-621742315
|
|
|
|
qtWrapperArgs = [ "--set QT_QPA_PLATFORM xcb" ];
|
|
|
|
|
2019-11-17 11:51:25 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Mail system tray notification icon for Thunderbird";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gyunaev/birdtray";
|
2019-11-17 11:51:25 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-03-17 17:03:31 +00:00
|
|
|
maintainers = with maintainers; [ Flakebi oxalica ];
|
2019-11-17 11:51:25 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|