Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / mo / mollysocket / package.nix
blobd2fd8ccbff0e21417681050ad65cdd7b6a457804
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , sqlite
7 , stdenv
8 , darwin
9 , nixosTests
12 rustPlatform.buildRustPackage rec {
13   pname = "mollysocket";
14   version = "1.4.0";
16   src = fetchFromGitHub {
17     owner = "mollyim";
18     repo = "mollysocket";
19     rev = version;
20     hash = "sha256-wZIP4mmIrg8D70C8jLjPC/+TlOT+gP7YOkM1Ey44Tvk=";
21   };
23   cargoHash = "sha256-3yTbwbgOIm69Nf8stPMMhgR6g0sfenycx07by8AM01M=";
25   nativeBuildInputs = [
26     pkg-config
27   ];
29   buildInputs = [
30     openssl
31     sqlite
32   ] ++ lib.optionals stdenv.isDarwin [
33     darwin.apple_sdk.frameworks.Security
34   ];
36   checkFlags = [
37     # tests interact with Signal servers
38     "--skip=config::tests::check_wildcard_endpoint"
39     "--skip=utils::post_allowed::tests::test_allowed"
40     "--skip=utils::post_allowed::tests::test_not_allowed"
41     "--skip=utils::post_allowed::tests::test_post"
42     "--skip=ws::tls::tests::connect_untrusted_server"
43     "--skip=ws::tls::tests::connect_trusted_server"
44   ];
46   passthru.tests = {
47     inherit (nixosTests) mollysocket;
48   };
50   meta = {
51     changelog = "https://github.com/mollyim/mollysocket/releases/tag/${version}";
52     description = "Get Signal notifications via UnifiedPush";
53     homepage = "https://github.com/mollyim/mollysocket";
54     license = lib.licenses.agpl3Plus;
55     mainProgram = "mollysocket";
56     maintainers = with lib.maintainers; [ dotlambda ];
57   };