1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/mailreaders/trojita/default.nix

84 lines
1.6 KiB
Nix
Raw Normal View History

2019-09-12 09:59:14 +01:00
{ akonadi-contacts
2016-06-21 13:24:45 +01:00
, cmake
2019-09-12 09:59:14 +01:00
, fetchgit
2020-04-15 00:08:48 +01:00
, fetchsvn
2019-09-02 11:38:01 +01:00
, gnupg
2019-09-12 09:59:14 +01:00
, gpgme
, kcontacts
2019-09-02 11:38:01 +01:00
, kf5gpgmepp
2019-09-12 09:59:14 +01:00
, lib
, libsecret
2019-09-12 09:59:14 +01:00
, mimetic
, mkDerivation
, pkg-config
2019-09-12 09:59:14 +01:00
, qgpgme
2016-06-21 13:24:45 +01:00
, qtbase
2019-09-12 09:59:14 +01:00
, qtkeychain
2018-11-19 09:33:50 +00:00
, qttools
2019-09-12 09:59:14 +01:00
, qtwebkit
2020-04-15 00:08:48 +01:00
, qttranslations
, substituteAll
, withI18n ? false
2016-06-21 13:24:45 +01:00
}:
let
l10n = fetchsvn {
url = "svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5";
rev = "1566642";
sha256 = "0y45fjib153za085la3hqpryycx33dkj3cz8kwzn2w31kvldfl1q";
};
in mkDerivation rec {
pname = "trojita";
2020-04-15 00:08:48 +01:00
version = "unstable-2020-07-06";
2016-06-21 13:24:45 +01:00
2019-09-12 09:59:14 +01:00
src = fetchgit {
url = "https://anongit.kde.org/trojita.git";
rev = "e973a5169f18ca862ceb8ad749c93cd621d86e14";
sha256 = "0r8nmlqwgsqkk0k8xh32fkwvv6iylj35xq2h8b7l3g03yc342kbn";
2016-06-21 13:24:45 +01:00
};
2020-04-15 00:08:48 +01:00
patches = (substituteAll {
# See https://github.com/NixOS/nixpkgs/issues/86054
src = ./fix-qttranslations-path.patch;
inherit qttranslations;
});
2016-06-21 13:24:45 +01:00
buildInputs = [
2019-09-12 09:59:14 +01:00
akonadi-contacts
gpgme
kcontacts
libsecret
2019-09-12 09:59:14 +01:00
mimetic
qgpgme
2016-06-21 13:24:45 +01:00
qtbase
2019-09-12 09:59:14 +01:00
qtkeychain
2016-06-21 13:24:45 +01:00
qtwebkit
2019-09-02 11:38:01 +01:00
mimetic
kf5gpgmepp
2016-06-21 13:24:45 +01:00
];
nativeBuildInputs = [
2017-05-17 20:26:11 +01:00
cmake
pkg-config
2018-11-19 09:33:50 +00:00
qttools
2019-09-02 11:38:01 +01:00
gnupg
2016-06-21 13:24:45 +01:00
];
2020-04-15 00:08:48 +01:00
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
'';
2017-05-17 20:26:11 +01:00
meta = with lib; {
2016-06-21 13:24:45 +01:00
description = "A Qt IMAP e-mail client";
2019-09-12 09:59:14 +01:00
homepage = "http://trojita.flaska.net/";
2017-05-17 20:26:11 +01:00
license = with licenses; [ gpl2 gpl3 ];
2019-09-02 11:38:01 +01:00
maintainers = with maintainers; [ ehmry ];
2017-05-17 20:26:11 +01:00
platforms = platforms.linux;
2016-06-21 13:24:45 +01:00
};
2019-09-02 11:38:01 +01:00
2016-06-21 13:24:45 +01:00
}