mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Add overlay for mautrix-discord
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
c51eb2acb0
commit
67bbe8551c
|
@ -55,6 +55,7 @@
|
|||
overlays/emacs-master-nativecomp
|
||||
overlays/zfs-relmount
|
||||
overlays/ical2org.nix
|
||||
overlays/mautrix-discord.nix
|
||||
];
|
||||
|
||||
flake.nixosModules = {
|
||||
|
|
39
overlays/mautrix-discord.nix
Normal file
39
overlays/mautrix-discord.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
||||
#
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
{ inputs, ... }:
|
||||
{
|
||||
flake.overlays.mautrix-discord =
|
||||
final: prev:
|
||||
let
|
||||
inherit (prev.lib)
|
||||
singleton;
|
||||
in
|
||||
{
|
||||
mautrix-discord =
|
||||
prev.buildGoModule rec {
|
||||
pname = "mautrix-discord";
|
||||
version = "0.3.0";
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "mautrix";
|
||||
repo = "discord";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Qlok8LnnuJYCmkDssyNRfrHSdBNi5J40cXJHX7xa4fI=";
|
||||
};
|
||||
|
||||
buildInputs = singleton prev.olm;
|
||||
|
||||
vendorSha256 = "sha256-OqMa4hpJLQRID8QxxX++lyFy/6b3Rg9GeQ7Qe+dsIkY=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with prev.lib; {
|
||||
homepage = "https://github.com/tulir/mautrix-whatsapp";
|
||||
description = "Matrix <-> Discord hybrid puppeting/relaybot bridge";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue