mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
Merge pull request #252550 from MoritzBoehme/mautrix-discord
mautrix-discord: init at 0.6.1
This commit is contained in:
commit
6a7f04b936
44
pkgs/servers/mautrix-discord/default.nix
Normal file
44
pkgs/servers/mautrix-discord/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, olm
|
||||
, nix-update-script
|
||||
, testers
|
||||
, mautrix-discord
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "mautrix-discord";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mautrix";
|
||||
repo = "discord";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-rs7wWlQMc79Vls+cqPPo+lRzYAGye4WcKKz+9EXlEBo=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-ZI1+Tfru2OfnqLnaaiDL08OtSmbMBiRDvkL39+jhhmI=";
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
buildInputs = [ olm ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion {
|
||||
package = mautrix-discord;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Matrix-Discord puppeting bridge";
|
||||
homepage = "https://github.com/mautrix/discord";
|
||||
changelog = "https://github.com/mautrix/discord/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ MoritzBoehme ];
|
||||
};
|
||||
}
|
@ -9993,6 +9993,8 @@ with pkgs;
|
||||
|
||||
matrix-hookshot = callPackage ../servers/matrix-synapse/matrix-hookshot { };
|
||||
|
||||
mautrix-discord = callPackage ../servers/mautrix-discord { };
|
||||
|
||||
mautrix-facebook = callPackage ../servers/mautrix-facebook { };
|
||||
|
||||
mautrix-googlechat = callPackage ../servers/mautrix-googlechat { };
|
||||
|
Loading…
Reference in New Issue
Block a user