2024-04-21 15:54:59 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, config
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, nixosTests
|
|
|
|
, olm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mautrix-meta";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.3.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mautrix";
|
|
|
|
repo = "meta";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-zU8c/ZAKTKd4dbG056gOCiPzvPNS5/KEkJ2fw48oV00=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ olm ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-uwprj4G7HI87ZGr+6Bqkp77nzW6kgV3S5j4NGjbtOwQ=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests)
|
|
|
|
mautrix-meta-postgres
|
|
|
|
mautrix-meta-sqlite
|
|
|
|
;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mautrix/meta";
|
|
|
|
description = "Matrix <-> Facebook and Mautrix <-> Instagram hybrid puppeting/relaybot bridge";
|
|
|
|
license = lib.licenses.agpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ rutherther ];
|
|
|
|
mainProgram = "mautrix-meta";
|
|
|
|
};
|
|
|
|
}
|