2019-11-17 12:51:25 +01:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtx11extras
|
2020-06-16 08:49:27 +02:00
|
|
|
, qttranslations
|
2019-11-17 12:51:25 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "birdtray";
|
2020-04-29 22:19:29 +02:00
|
|
|
version = "1.8.1";
|
2019-11-17 12:51:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gyunaev";
|
|
|
|
repo = pname;
|
2020-04-20 10:56:02 +02:00
|
|
|
rev = version;
|
2020-04-29 22:19:29 +02:00
|
|
|
sha256 = "15l8drdmamq1dpqpj0h9ajj2r5vcs23cx421drvhfgs6bqlzd1hl";
|
2019-11-17 12:51:25 +01:00
|
|
|
};
|
|
|
|
|
2020-06-16 08:49:27 +02:00
|
|
|
patches = [
|
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
|
|
./fix-qttranslations-path.diff
|
|
|
|
];
|
|
|
|
|
2019-11-17 12:51:25 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [
|
2020-04-20 10:56:02 +02:00
|
|
|
qtbase qttools qtx11extras
|
2019-11-17 12:51:25 +01:00
|
|
|
];
|
|
|
|
|
2020-06-16 08:49:27 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/birdtrayapp.cpp \
|
|
|
|
--subst-var-by qttranslations ${qttranslations}
|
|
|
|
'';
|
|
|
|
|
2019-11-17 12:51:25 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Mail system tray notification icon for Thunderbird";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/gyunaev/birdtray";
|
2019-11-17 12:51:25 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|