mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
42 lines
852 B
Nix
42 lines
852 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, nixosTests
|
|
, olm
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mautrix-meta";
|
|
version = "0.3.2";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mautrix";
|
|
repo = "meta";
|
|
rev = "v${version}";
|
|
hash = "sha256-whBqhdB2FSFfrbtGtq8v3pjXW7QMt+I0baHTXVGPWVg=";
|
|
};
|
|
|
|
buildInputs = [ olm ];
|
|
|
|
vendorHash = "sha256-rP9wvF6yYW0TdQ+vQV6ZcVMxnCtqz8xRcd9v+4pYYio=";
|
|
|
|
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";
|
|
};
|
|
}
|