472b6f4f33
Provide a minimal cli only version see #97991. Reviewed-by: SuperSandro2000 <sandro.jaeckel@posteo.de> Reviewed-by: kalbasit <github@kalbas.it>
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, pkg-config, libsecret }:
|
|
|
|
buildGoModule rec {
|
|
pname = "protonmail-bridge";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ProtonMail";
|
|
repo = "proton-bridge";
|
|
rev = "br-${version}";
|
|
sha256 = "lHqwKlFwz9iO7LJMGFTGCauw12z/BKnQte2sVoVkOaY=";
|
|
};
|
|
|
|
vendorSha256 = "eP+7fqBctX9XLCoHVJDI/qaa5tocgg3F5nfUM6dzNRg=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libsecret ];
|
|
|
|
buildPhase = ''
|
|
make BUILD_TIME= build-nogui
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dm555 Desktop-Bridge $out/bin/protonmail-bridge
|
|
'';
|
|
|
|
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;
|
|
maintainers = with maintainers; [ lightdiscord ];
|
|
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.
|
|
|
|
To work, gnome-keyring service must be enabled.
|
|
'';
|
|
};
|
|
}
|