mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
5be6d6203b
Diff: https://github.com/mollyim/mollysocket/compare/1.4.0...1.4.1 Changelog: https://github.com/mollyim/mollysocket/releases/tag/1.4.1
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, sqlite
|
|
, stdenv
|
|
, darwin
|
|
, nixosTests
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mollysocket";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mollyim";
|
|
repo = "mollysocket";
|
|
rev = version;
|
|
hash = "sha256-vE5J4BKYmVqtowfxDDTOwFKws7phYRm9xKFPiDNuNn4=";
|
|
};
|
|
|
|
cargoHash = "sha256-s/EhX5o6XuUqcrqhXY274MyWhRukgetfIZKQ4XNlq6Y=";
|
|
|
|
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 ];
|
|
};
|
|
}
|