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
972 B
Nix
Raw Normal View History

2023-08-31 13:39:45 +02:00
{ lib
, buildGoModule
, fetchFromGitHub
, olm
, nix-update-script
, testers
, mautrix-discord
}:
buildGoModule rec {
pname = "mautrix-discord";
2024-01-22 21:22:17 +01:00
version = "0.6.5";
2023-08-31 13:39:45 +02:00
src = fetchFromGitHub {
owner = "mautrix";
repo = "discord";
rev = "v${version}";
2024-01-22 21:22:17 +01:00
hash = "sha256-kjIBjkRI0BrbMNkb1Tdv7d+ZFOKRkUL9KxtQMtvxpIM=";
2023-08-31 13:39:45 +02:00
};
2024-01-22 21:22:17 +01:00
vendorHash = "sha256-qRIgdkDp1pd/bA/AIU4PvoXcvrQam0kmr0hu4yAl+IY=";
2023-08-31 13:39:45 +02:00
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 ];
2023-11-23 22:09:35 +01:00
mainProgram = "mautrix-discord";
2023-08-31 13:39:45 +02:00
};
}