2021-02-01 08:49:40 +11:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, pkg-config
|
|
|
|
, libsecret
|
|
|
|
}:
|
|
|
|
|
|
|
|
{ pname
|
|
|
|
, tags
|
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
|
|
|
|
buildGoModule (lib.recursiveUpdate args rec {
|
|
|
|
inherit pname;
|
2021-11-11 22:42:12 +11:00
|
|
|
version = "1.8.10";
|
2021-02-01 08:49:40 +11:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ProtonMail";
|
|
|
|
repo = "proton-bridge";
|
|
|
|
rev = "br-${version}";
|
|
|
|
sha256 = "1na8min9cmn82lpad58abw6837k303fr09l6cvzswaxs73f231ig";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "1219xa1347877bfhnid15y6w9s4hf1czbrmll2iha4gpsmg066bb";
|
|
|
|
|
|
|
|
nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = (args.buildInputs or [ ]) ++ [
|
|
|
|
libsecret
|
|
|
|
];
|
|
|
|
|
2021-11-11 22:40:25 +11:00
|
|
|
inherit tags;
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-X github.com/ProtonMail/proton-bridge/pkg/constants.Version=${version}"
|
|
|
|
"-X github.com/ProtonMail/proton-bridge/pkg/constants.Revision=${version}"
|
|
|
|
"-X github.com/ProtonMail/proton-bridge/pkg/constants.BuildDate=unknown"
|
|
|
|
];
|
2021-02-01 08:49:40 +11:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Integrate ProtonMail paid account with any program that supports IMAP and SMTP";
|
|
|
|
homepage = "https://protonmail.com";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
plaforms = platforms.x86_64;
|
|
|
|
};
|
|
|
|
})
|