lol

Merge pull request #218025 from MrFreezeex/protonbridge-update

protonmail-bridge: 2.3.0 -> 3.0.18

authored by

Robert Schütz and committed by
GitHub
be55739e 2c106c1e

+32 -15
+6
maintainers/maintainer-list.nix
··· 10137 10137 githubId = 3073833; 10138 10138 name = "Massimo Redaelli"; 10139 10139 }; 10140 + mrfreezeex = { 10141 + email = "arthur@cri.epita.fr"; 10142 + github = "MrFreezeex"; 10143 + name = "Arthur Outhenin-Chalandre"; 10144 + githubId = 14573967; 10145 + }; 10140 10146 mrityunjaygr8 = { 10141 10147 email = "mrityunjaysaxena1996@gmail.com"; 10142 10148 github = "mrityunjaygr8";
+4
nixos/doc/manual/release-notes/rl-2305.section.md
··· 117 117 118 118 - The [services.wordpress.sites.<name>.plugins](#opt-services.wordpress.sites._name_.plugins) and [services.wordpress.sites.<name>.themes](#opt-services.wordpress.sites._name_.themes) options have been converted from sets to attribute sets to allow for consumers to specify explicit install paths via attribute name. 119 119 120 + - `protonmail-bridge` package has been updated to v3.0 and the CLI executable is now named bridge instead of protonmail-bridge to be more in line with upstream. 121 + 120 122 - Nebula now runs as a system user and group created for each nebula network, using the `CAP_NET_ADMIN` ambient capability on launch rather than starting as root. Ensure that any files each Nebula instance needs to access are owned by the correct user and group, by default `nebula-${networkName}`. 121 123 122 124 - In `mastodon` it is now necessary to specify location of file with `PostgreSQL` database password. In `services.mastodon.database.passwordFile` parameter default value `/var/lib/mastodon/secrets/db-password` has been changed to `null`. ··· 256 258 - The new option `programs.singularity.enableFakeroot`, if set to `true`, provides `--fakeroot` support for `apptainer` and `singularity`. 257 259 258 260 - The `unifi-poller` package and corresponding NixOS module have been renamed to `unpoller` to match upstream. 261 + 262 + - `protonmail-bridge` package has been updated to v3.0 and the CLI executable is now named bridge instead of protonmail-bridge to be more in line with upstream. 259 263 260 264 - The new option `services.tailscale.useRoutingFeatures` controls various settings for using Tailscale features like exit nodes and subnet routers. If you wish to use your machine as an exit node, you can set this setting to `server`, otherwise if you wish to use an exit node you can set this setting to `client`. The strict RPF warning has been removed as the RPF will be loosened automatically based on the value of this setting. 261 265
+22 -15
pkgs/applications/networking/protonmail-bridge/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "protonmail-bridge"; 5 - version = "2.3.0"; 5 + version = "3.0.18"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "ProtonMail"; 9 9 repo = "proton-bridge"; 10 - rev = "br-${version}"; 11 - sha256 = "sha256-7p+Q6/BphE/dxNQe+gfcIty6TAWHUcPpvSJWfmf4OQg="; 10 + rev = "v${version}"; 11 + hash = "sha256-0gQnMhjwW2NEJwafqndStQ33dIu82lW6ntXFRCpbmm4="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-dhrn6xQ0IJzBYeO6ko2PUCO+idopC2An0ylqCnx5jKg="; 14 + vendorHash = "sha256-lHMcVcaoBwjE2ikEZPeZexC5XvhkAtvHnDci7UAa4vg="; 15 15 16 16 nativeBuildInputs = [ pkg-config ]; 17 17 18 18 buildInputs = [ libsecret ]; 19 19 20 - buildPhase = '' 21 - runHook preBuild 20 + proxyVendor = true; # Bridge uses some C headers so we have to enable proxyVendor 22 21 22 + preBuild = '' 23 23 patchShebangs ./utils/ 24 - make BUILD_TIME= -j$NIX_BUILD_CORES build-nogui 25 - 26 - runHook postBuild 24 + (cd ./utils/ && ./credits.sh bridge) 27 25 ''; 28 26 29 - installPhase = '' 30 - runHook preInstall 27 + ldflags = 28 + let constants = "github.com/ProtonMail/proton-bridge/v3/internal/constants"; in 29 + [ 30 + "-X ${constants}.Version=${version}" 31 + "-X ${constants}.Revision=${src.rev}" 32 + "-X ${constants}.buildTime=unknown" 33 + "-X ${constants}.FullAppName=ProtonMailBridge" # Should be "Proton Mail Bridge", but quoting doesn't seems to work in nix's ldflags 34 + ]; 31 35 32 - install -Dm555 proton-bridge $out/bin/protonmail-bridge 36 + subPackages = [ 37 + "cmd/Desktop-Bridge" 38 + ]; 33 39 34 - runHook postInstall 40 + postInstall = '' 41 + mv $out/bin/Desktop-Bridge $out/bin/bridge # The cli is named like that in the upstream repo 35 42 ''; 36 43 37 44 meta = with lib; { 38 45 homepage = "https://github.com/ProtonMail/proton-bridge"; 39 - changelog = "https://github.com/ProtonMail/proton-bridge/blob/master/Changelog.md"; 46 + changelog = "https://github.com/ProtonMail/proton-bridge/blob/${src.rev}/Changelog.md"; 40 47 downloadPage = "https://github.com/ProtonMail/proton-bridge/releases"; 41 48 license = licenses.gpl3Plus; 42 - maintainers = with maintainers; [ lightdiscord ]; 49 + maintainers = with maintainers; [ mrfreezeex ]; 43 50 description = "Use your ProtonMail account with your local e-mail client"; 44 51 longDescription = '' 45 52 An application that runs on your computer in the background and seamlessly encrypts