lol

Merge pull request #44346 from Fork-Native-Light-Foundation/package/protonmail-bridge

protonmail-bridge: init at 1.0.5-1

authored by

xeji and committed by
GitHub
725f2531 d31f89df

+90
+5
maintainers/maintainer-list.nix
··· 2174 2174 github = "nathanielbaxter"; 2175 2175 name = "Nathaniel Baxter"; 2176 2176 }; 2177 + lightdiscord = { 2178 + email = "arnaud@lightdiscord.me"; 2179 + github = "lightdiscord"; 2180 + name = "Arnaud Pascal"; 2181 + }; 2177 2182 lihop = { 2178 2183 email = "nixos@leroy.geek.nz"; 2179 2184 github = "lihop";
+83
pkgs/applications/networking/protonmail-bridge/default.nix
··· 1 + { stdenv, fetchurl, lib, qtbase, qtmultimedia, qtsvg, qtdeclarative, qttools, full, 2 + libsecret, libGL, libpulseaudio, glib, makeWrapper, makeDesktopItem }: 3 + 4 + let 5 + version = "1.0.5-1"; 6 + 7 + description = '' 8 + An application that runs on your computer in the background and seamlessly encrypts 9 + and decrypts your mail as it enters and leaves your computer 10 + ''; 11 + 12 + desktopItem = makeDesktopItem { 13 + name = "Desktop-Bridge"; 14 + exec = "Desktop-Bridge"; 15 + icon = "desktop-bridge"; 16 + comment = stdenv.lib.replaceStrings ["\n"] [" "] description; 17 + desktopName = "ProtonMail Bridge"; 18 + genericName = "ProtonMail Bridge for Linux"; 19 + categories = "Utility;Security;Network;Email"; 20 + }; 21 + in stdenv.mkDerivation rec { 22 + name = "protonmail-bridge-${version}"; 23 + 24 + src = fetchurl { 25 + url = "https://protonmail.com/download/protonmail-bridge_${version}_amd64.deb"; 26 + sha256 = "1fsf4l5c9ii370fgy721a71h34g7vjfddscal3jblb4mm3ywzxfl"; 27 + }; 28 + 29 + nativeBuildInputs = [ makeWrapper ]; 30 + 31 + sourceRoot = "."; 32 + 33 + unpackCmd = '' 34 + ar p "$src" data.tar.xz | tar xJ 35 + ''; 36 + 37 + installPhase = '' 38 + mkdir -p $out/{bin,lib,share} 39 + mkdir -p $out/share/{applications,icons/hicolor/scalable/apps} 40 + 41 + cp -r usr/lib/protonmail/bridge/Desktop-Bridge{,.sh} $out/lib 42 + cp usr/share/icons/protonmail/Desktop-Bridge.svg $out/share/icons/hicolor/scalable/apps/desktop-bridge.svg 43 + cp ${desktopItem}/share/applications/* $out/share/applications 44 + 45 + ln -s $out/lib/Desktop-Bridge $out/bin/Desktop-Bridge 46 + ''; 47 + 48 + postFixup = let 49 + rpath = lib.makeLibraryPath [ 50 + stdenv.cc.cc.lib 51 + qtbase 52 + qtmultimedia 53 + qtsvg 54 + qtdeclarative 55 + qttools 56 + libGL 57 + libsecret 58 + libpulseaudio 59 + glib 60 + ]; 61 + 62 + qtPath = prefix: "${full}/${prefix}"; 63 + in '' 64 + patchelf \ 65 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 66 + --set-rpath "${rpath}" \ 67 + $out/lib/Desktop-Bridge 68 + 69 + wrapProgram $out/lib/Desktop-Bridge \ 70 + --set QT_PLUGIN_PATH "${qtPath qtbase.qtPluginPrefix}" \ 71 + --set QML_IMPORT_PATH "${qtPath qtbase.qtQmlPrefix}" \ 72 + --set QML2_IMPORT_PATH "${qtPath qtbase.qtQmlPrefix}" \ 73 + ''; 74 + 75 + meta = with stdenv.lib; { 76 + homepage = https://www.protonmail.com/bridge; 77 + license = licenses.mit; 78 + platforms = [ "x86_64-linux" ]; 79 + maintainers = with maintainers; [ lightdiscord ]; 80 + 81 + inherit description; 82 + }; 83 + }
+2
pkgs/top-level/all-packages.nix
··· 17922 17922 python = python3; 17923 17923 }; 17924 17924 17925 + protonmail-bridge = libsForQt5.callPackage ../applications/networking/protonmail-bridge { }; 17926 + 17925 17927 psi = callPackage ../applications/networking/instant-messengers/psi { }; 17926 17928 17927 17929 psi-plus = callPackage ../applications/networking/instant-messengers/psi-plus { };