mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, pkg-config, libsecret }:
|
|
|
|
buildGoModule rec {
|
|
pname = "protonmail-bridge";
|
|
version = "1.8.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ProtonMail";
|
|
repo = "proton-bridge";
|
|
rev = "br-${version}";
|
|
sha256 = "sha256-bynPuAdeX4WxYdbjMkR9ANuYWYOINB0OHnKTmIrCB6E=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-g2vl1Ctxr2U+D/k9u9oXuZ1OWaABIJs0gmfhWh13ZFM=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libsecret ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
patchShebangs ./utils/
|
|
make BUILD_TIME= -j$NIX_BUILD_CORES build-nogui
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm555 proton-bridge $out/bin/protonmail-bridge
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
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;
|
|
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.
|
|
'';
|
|
};
|
|
}
|