diff options
author | stuebinm | 2024-03-04 18:55:18 +0100 |
---|---|---|
committer | stuebinm | 2024-03-04 18:55:18 +0100 |
commit | 0b7bf6205fa36e48c597bce55a65820d81cbeaec (patch) | |
tree | 9c69d31848a86dd595292c7620b379fdb82d0e36 /pkgs | |
parent | 303aacafdb293aaed7cfdb0e434f10d77bfb203a (diff) |
init mollysocket package, module, and deploy it on flora
with thanks to networkException, who wrote the initial nix package.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/mollysocket.nix | 38 | ||||
-rw-r--r-- | pkgs/overlay.nix | 2 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/mollysocket.nix b/pkgs/mollysocket.nix new file mode 100644 index 0000000..8ac434d --- /dev/null +++ b/pkgs/mollysocket.nix @@ -0,0 +1,38 @@ +{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, sqlite, ... }: + +rustPlatform.buildRustPackage rec { + pname = "mollysocket"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "mollyim"; + repo = "mollysocket"; + rev = "${version}"; + hash = "sha256-9yXC64i5NeSjsLnjgNtA+qkhE7i+Ku1Cu8B9xDajD9Y="; + }; + + cargoHash = "sha256-vqi18y1Z9Fo1P6ihdN1LCK6Trr7fcfzCsQfPNt0MYNk="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl sqlite ]; + + checkFlags = [ + # These tests try to contact DNS + "--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" + ]; + + meta = { + description = + "MollySocket allows getting Signal notifications via UnifiedPush."; + homepage = "https://github.com/mollyim/mollysocket"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ networkexception ]; + mainProgram = "mollysocket"; + }; +} diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix index 6e654b3..f38e7e0 100644 --- a/pkgs/overlay.nix +++ b/pkgs/overlay.nix @@ -183,4 +183,6 @@ in cp Tangled/inweb $out/bin ''; }) {}; + + mollysocket = self.callPackage ./mollysocket.nix { }; } |