mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
45 lines
935 B
Nix
45 lines
935 B
Nix
{ 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=";
|
|
};
|
|
|
|
vendorHash = "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 ];
|
|
};
|
|
}
|