2020-11-06 21:58:11 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, pkg-config, libsecret }:
|
2018-08-02 11:47:09 +02:00
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
buildGoModule rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "protonmail-bridge";
|
2020-11-06 21:58:11 +01:00
|
|
|
version = "1.5.0";
|
2018-08-02 11:47:09 +02:00
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ProtonMail";
|
|
|
|
repo = "proton-bridge";
|
|
|
|
rev = "br-${version}";
|
|
|
|
sha256 = "lHqwKlFwz9iO7LJMGFTGCauw12z/BKnQte2sVoVkOaY=";
|
2018-08-02 11:47:09 +02:00
|
|
|
};
|
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
vendorSha256 = "eP+7fqBctX9XLCoHVJDI/qaa5tocgg3F5nfUM6dzNRg=";
|
2018-08-02 11:47:09 +02:00
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-08-02 11:47:09 +02:00
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
buildInputs = [ libsecret ];
|
2018-08-02 11:47:09 +02:00
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
buildPhase = ''
|
|
|
|
make BUILD_TIME= build-nogui
|
2018-08-02 11:47:09 +02:00
|
|
|
'';
|
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm555 Desktop-Bridge $out/bin/protonmail-bridge
|
2018-08-02 11:47:09 +02:00
|
|
|
'';
|
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ProtonMail/proton-bridge";
|
|
|
|
changelog = "https://github.com/ProtonMail/proton-bridge/blob/master/Changelog.md";
|
|
|
|
downloadPage = "https://github.com/ProtonMail/proton-bridge/releases";
|
|
|
|
license = licenses.gpl3;
|
2018-08-02 11:47:09 +02:00
|
|
|
maintainers = with maintainers; [ lightdiscord ];
|
2020-11-06 21:58:11 +01:00
|
|
|
description = "Use your ProtonMail account with your local e-mail client";
|
|
|
|
longDescription = ''
|
|
|
|
An application that runs on your computer in the background and seamlessly encrypts
|
|
|
|
and decrypts your mail as it enters and leaves your computer.
|
2018-08-02 11:47:09 +02:00
|
|
|
|
2020-11-06 21:58:11 +01:00
|
|
|
To work, gnome-keyring service must be enabled.
|
|
|
|
'';
|
2018-08-02 11:47:09 +02:00
|
|
|
};
|
|
|
|
}
|