biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / peroxide / default.nix
blob6e8537275f0550f86a91f91495d8ed56db265d03
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , nixosTests
5 }:
7 buildGoModule rec {
8   pname = "peroxide";
9   version = "0.5.0";
11   src = fetchFromGitHub {
12     owner = "ljanyst";
13     repo = "peroxide";
14     rev = "v${version}";
15     sha256 = "sha256-6Jb1i4aNjeemiQp9FF/KGyZ+Evom9PPBvARbJWyrhok=";
16   };
18   vendorHash = "sha256-kuFlkkMkCKO5Rrh1EoyVdaykvxTfchK2l1/THqTBeAY=";
20   postPatch = ''
21     # These tests connect to the internet, which does not work in sandboxed
22     # builds, so skip these.
23     rm pkg/pmapi/dialer_pinning_test.go \
24        pkg/pmapi/dialer_proxy_provider_test.go \
25        pkg/pmapi/dialer_proxy_test.go
26   '';
28   passthru.tests.peroxide = nixosTests.peroxide;
30   meta = with lib; {
31     homepage = "https://github.com/ljanyst/peroxide";
32     license = licenses.gpl3Plus;
33     maintainers = with maintainers; [ aidalgol ];
34     description = "Unofficial ProtonMail bridge";
35     longDescription = ''
36       Peroxide is a fork of the official ProtonMail bridge that aims to be
37       similar to Hydroxide while reusing as much code from the official bridge
38       as possible.
39     '';
40   };