diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/mailreaders/trojita/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/mailreaders/trojita/default.nix | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/applications/networking/mailreaders/trojita/default.nix b/nixpkgs/pkgs/applications/networking/mailreaders/trojita/default.nix index f383018e253..52d4d77a400 100644 --- a/nixpkgs/pkgs/applications/networking/mailreaders/trojita/default.nix +++ b/nixpkgs/pkgs/applications/networking/mailreaders/trojita/default.nix @@ -1,6 +1,7 @@ { akonadi-contacts , cmake , fetchgit +, fetchsvn , gnupg , gpgme , kcontacts @@ -15,18 +16,33 @@ , qtkeychain , qttools , qtwebkit +, qttranslations +, substituteAll +, withI18n ? true }: mkDerivation rec { pname = "trojita"; - version = "0.7.20190618"; + version = "unstable-2020-07-06"; src = fetchgit { url = "https://anongit.kde.org/trojita.git"; - rev = "90b417b131853553c94ff93aef62abaf301aa8f1"; - sha256 = "0xpxq5bzqaa68lkz90wima5q2m0mdcn0rvnigb66lylb4n20mnql"; + rev = "e973a5169f18ca862ceb8ad749c93cd621d86e14"; + sha256 = "0r8nmlqwgsqkk0k8xh32fkwvv6iylj35xq2h8b7l3g03yc342kbn"; }; + l10n = fetchsvn { + url = "svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5"; + rev = "1566642"; + sha256 = "0y45fjib153za085la3hqpryycx33dkj3cz8kwzn2w31kvldfl1q"; + }; + + patches = (substituteAll { + # See https://github.com/NixOS/nixpkgs/issues/86054 + src = ./fix-qttranslations-path.patch; + inherit qttranslations; + }); + buildInputs = [ akonadi-contacts gpgme @@ -48,6 +64,14 @@ mkDerivation rec { gnupg ]; + postPatch = "echo ${version} > src/trojita-version" + + lib.optionalString withI18n '' + mkdir -p po + for f in `find ${l10n} -name "trojita_common.po"`; do + cp $f po/trojita_common_$(echo $f | cut -d/ -f5).po + done + ''; + meta = with lib; { description = "A Qt IMAP e-mail client"; homepage = "http://trojita.flaska.net/"; |