61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
sqlite,
|
|
stdenv,
|
|
darwin,
|
|
nixosTests,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mollysocket";
|
|
version = "1.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mollyim";
|
|
repo = "mollysocket";
|
|
rev = version;
|
|
hash = "sha256-kWmftkzxhVkXQ8EcGJz+Yg6o9OubIMQprwDrcKb2HWQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-UgJI9lUbvX/Yw90fo6/voX9noWZH8XVssOR4DpquHUY=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
openssl
|
|
sqlite
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.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 ];
|
|
};
|
|
}
|