Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1b9ff5f96c6d
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9c6a75e379b8
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 22, 2020

  1. protonmail-bridge: 1.2.3-1 -> 1.5.0

    Provide a minimal cli only version see #97991.
    
    Reviewed-by: SuperSandro2000 <sandro.jaeckel@posteo.de>
    Reviewed-by: kalbasit <github@kalbas.it>
    lightdiscord committed Nov 22, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    kurtmckee Kurt McKee
    Copy the full SHA
    472b6f4 View commit details

Commits on Nov 26, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    kurtmckee Kurt McKee
    Copy the full SHA
    9c6a75e View commit details
Showing with 27 additions and 58 deletions.
  1. +26 −57 pkgs/applications/networking/protonmail-bridge/default.nix
  2. +1 −1 pkgs/top-level/all-packages.nix
83 changes: 26 additions & 57 deletions pkgs/applications/networking/protonmail-bridge/default.nix
Original file line number Diff line number Diff line change
@@ -1,73 +1,42 @@
{ stdenv, fetchurl, lib, qtbase, qtmultimedia, qtsvg, qtdeclarative, qttools, qtgraphicaleffects, qtquickcontrols2, full
, libsecret, libGL, libpulseaudio, glib, wrapQtAppsHook, mkDerivation }:
{ lib, buildGoModule, fetchFromGitHub, pkg-config, libsecret }:

let
version = "1.2.3-1";

description = ''
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.
'';
in mkDerivation {
buildGoModule rec {
pname = "protonmail-bridge";
inherit version;
version = "1.5.0";

src = fetchurl {
url = "https://protonmail.com/download/protonmail-bridge_${version}_amd64.deb";
sha256 = "032ggk9fvd19fbsqkzwzwh0hpyg8gpkrin71di7zsx6ias5innw1";
src = fetchFromGitHub {
owner = "ProtonMail";
repo = "proton-bridge";
rev = "br-${version}";
sha256 = "lHqwKlFwz9iO7LJMGFTGCauw12z/BKnQte2sVoVkOaY=";
};

sourceRoot = ".";
vendorSha256 = "eP+7fqBctX9XLCoHVJDI/qaa5tocgg3F5nfUM6dzNRg=";

unpackCmd = ''
ar p "$src" data.tar.xz | tar xJ
'';
nativeBuildInputs = [ pkg-config ];

installPhase = ''
mkdir -p $out/{bin,lib,share}
buildInputs = [ libsecret ];

cp -r usr/lib/protonmail/bridge/protonmail-bridge $out/lib
cp -r usr/share $out
ln -s $out/lib/protonmail-bridge $out/bin/protonmail-bridge
buildPhase = ''
make BUILD_TIME= build-nogui
'';

postFixup = let
rpath = lib.makeLibraryPath [
stdenv.cc.cc.lib
qtbase
qtquickcontrols2
qtgraphicaleffects
qtmultimedia
qtsvg
qtdeclarative
qttools
libGL
libsecret
libpulseaudio
glib
];
in ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${rpath}" \
$out/lib/protonmail-bridge
substituteInPlace $out/share/applications/ProtonMail_Bridge.desktop \
--replace "/usr/" "$out/" \
--replace "Exec=protonmail-bridge" "Exec=$out/bin/protonmail-bridge"
installPhase = ''
install -Dm555 Desktop-Bridge $out/bin/protonmail-bridge
'';

buildInputs = [ qtbase qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative ];

meta = with stdenv.lib; {
homepage = "https://www.protonmail.com/bridge";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
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.
inherit description;
To work, gnome-keyring service must be enabled.
'';
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -23266,7 +23266,7 @@ in

properties-cpp = callPackage ../development/libraries/properties-cpp { };

protonmail-bridge = libsForQt5.callPackage ../applications/networking/protonmail-bridge { };
protonmail-bridge = callPackage ../applications/networking/protonmail-bridge { };

protonvpn-cli = callPackage ../applications/networking/protonvpn-cli { };