mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, sqlite
|
|
, stdenv
|
|
, darwin
|
|
, nixosTests
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mollysocket";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mollyim";
|
|
repo = "mollysocket";
|
|
rev = version;
|
|
hash = "sha256-eFvRjGUQ1AU+kXUp6YALm1lqhTMY2DxvFuf+MHCL38c=";
|
|
};
|
|
|
|
cargoHash = "sha256-3UwvnbHH6v1fJyivdU55GmJ2/+RSqXfBKIcOARASWbE=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
sqlite
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
checkFlags = [
|
|
# tests interact with Signal servers
|
|
"--skip=config::tests::check_wildcard_endpoint"
|
|
"--skip=utils::post_allowed::tests::test_allowed"
|
|
"--skip=utils::post_allowed::tests::test_not_allowed"
|
|
"--skip=utils::post_allowed::tests::test_post"
|
|
"--skip=ws::tls::tests::connect_untrusted_server"
|
|
"--skip=ws::tls::tests::connect_trusted_server"
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) mollysocket;
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/mollyim/mollysocket/releases/tag/${version}";
|
|
description = "Get Signal notifications via UnifiedPush";
|
|
homepage = "https://github.com/mollyim/mollysocket";
|
|
license = lib.licenses.agpl3Plus;
|
|
mainProgram = "mollysocket";
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|