nixpkgs/pkgs/servers/mautrix-discord/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
970 B
Nix
Raw Normal View History

2023-08-31 11:39:45 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, olm
, nix-update-script
, testers
, mautrix-discord
}:
buildGoModule rec {
pname = "mautrix-discord";
2024-07-24 03:31:19 +00:00
version = "0.7.0";
2023-08-31 11:39:45 +00:00
src = fetchFromGitHub {
owner = "mautrix";
repo = "discord";
rev = "v${version}";
2024-07-24 03:31:19 +00:00
hash = "sha256-N6CepP+P63TIKKi6FQLJEuV5hFtiv1CcBM+1Y/QPZrI=";
2023-08-31 11:39:45 +00:00
};
2024-07-24 03:31:19 +00:00
vendorHash = "sha256-QdH98NA5Y9YKkvL8Gq8ChgvHFOyOBFXDDulxwql6v5c=";
2023-08-31 11:39:45 +00:00
ldflags = [ "-s" "-w" ];
buildInputs = [ olm ];
doCheck = false;
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = mautrix-discord;
};
};
meta = with lib; {
description = "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 ];
2023-11-23 21:09:35 +00:00
mainProgram = "mautrix-discord";
2023-08-31 11:39:45 +00:00
};
}