nixpkgs/pkgs/applications/misc/birdtray/default.nix

47 lines
960 B
Nix
Raw Normal View History

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