azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / mo / mollysocket / package.nix
blob431c246fe468e275d05e80633a158e3c0787927e
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   openssl,
7   sqlite,
8   stdenv,
9   darwin,
10   nixosTests,
13 rustPlatform.buildRustPackage rec {
14   pname = "mollysocket";
15   version = "1.6.0";
17   src = fetchFromGitHub {
18     owner = "mollyim";
19     repo = "mollysocket";
20     tag = version;
21     hash = "sha256-F80XRQn3h1Y6dE8PVLGMTY29yZomrwqFAsm7h8euHw8=";
22   };
24   cargoHash = "sha256-ZHS/EJBhT1H5MvuqdPtmf95ctuLft4qVsZzPVeJBR5k=";
26   nativeBuildInputs = [
27     pkg-config
28   ];
30   buildInputs =
31     [
32       openssl
33       sqlite
34     ]
35     ++ lib.optionals stdenv.hostPlatform.isDarwin [
36       darwin.apple_sdk.frameworks.Security
37     ];
39   checkFlags = [
40     # tests interact with Signal servers
41     "--skip=config::tests::check_wildcard_endpoint"
42     "--skip=utils::post_allowed::tests::test_allowed"
43     "--skip=utils::post_allowed::tests::test_not_allowed"
44     "--skip=utils::post_allowed::tests::test_post"
45     "--skip=ws::tls::tests::connect_untrusted_server"
46     "--skip=ws::tls::tests::connect_trusted_server"
47   ];
49   passthru.tests = {
50     inherit (nixosTests) mollysocket;
51   };
53   meta = {
54     changelog = "https://github.com/mollyim/mollysocket/releases/tag/${version}";
55     description = "Get Signal notifications via UnifiedPush";
56     homepage = "https://github.com/mollyim/mollysocket";
57     license = lib.licenses.agpl3Plus;
58     mainProgram = "mollysocket";
59     maintainers = with lib.maintainers; [ dotlambda ];
60   };