mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
fd474c0e0c
birdtray crashes not finding the translations without this fix
47 lines
954 B
Nix
47 lines
954 B
Nix
{ mkDerivation
|
|
, lib
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
, pkgconfig
|
|
, qtbase
|
|
, qttools
|
|
, qtx11extras
|
|
, qttranslations
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "birdtray";
|
|
version = "1.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gyunaev";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "15l8drdmamq1dpqpj0h9ajj2r5vcs23cx421drvhfgs6bqlzd1hl";
|
|
};
|
|
|
|
patches = [
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
./fix-qttranslations-path.diff
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
buildInputs = [
|
|
qtbase qttools qtx11extras
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/birdtrayapp.cpp \
|
|
--subst-var-by qttranslations ${qttranslations}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Mail system tray notification icon for Thunderbird";
|
|
homepage = "https://github.com/gyunaev/birdtray";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|