nixpkgs/pkgs/applications/networking/protonmail-bridge/default.nix

52 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, pkg-config, libsecret }:
2018-08-02 09:47:09 +00:00
buildGoModule rec {
2019-08-13 21:52:01 +00:00
pname = "protonmail-bridge";
version = "1.6.9";
2018-08-02 09:47:09 +00:00
src = fetchFromGitHub {
owner = "ProtonMail";
repo = "proton-bridge";
rev = "br-${version}";
sha256 = "0p2315smxc5knxzr9413w62z65647znh9j9vyb6w5x4dqfp7vhz9";
2018-08-02 09:47:09 +00:00
};
vendorSha256 = "04aa7syp5hhpqxdpqlsmmbwywnbrh4ia0diym2935jbrqccnvm1k";
2018-08-02 09:47:09 +00:00
nativeBuildInputs = [ pkg-config ];
2018-08-02 09:47:09 +00:00
buildInputs = [ libsecret ];
2018-08-02 09:47:09 +00:00
buildPhase = ''
runHook preBuild
patchShebangs ./utils/
make BUILD_TIME= -j$NIX_BUILD_CORES build-nogui
runHook postBuild
2018-08-02 09:47:09 +00:00
'';
installPhase = ''
runHook preInstall
install -Dm555 proton-bridge $out/bin/protonmail-bridge
runHook postInstall
2018-08-02 09:47:09 +00: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.gpl3Plus;
2018-08-02 09:47:09 +00:00
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.
2018-08-02 09:47:09 +00:00
To work, gnome-keyring service must be enabled.
'';
2018-08-02 09:47:09 +00:00
};
}