18 lines
420 B
Nix
18 lines
420 B
Nix
|
{
|
||
|
pkgs,
|
||
|
inputs,
|
||
|
...
|
||
|
} @ args: let
|
||
|
inherit ((pkgs.callPackage "${inputs.gomod2nix}/builder" {})) buildGoApplication;
|
||
|
in {
|
||
|
mautrix-discord = buildGoApplication rec {
|
||
|
pname = "mautrix-discord";
|
||
|
version = inputs.mautrix-discord.lastModifiedDate;
|
||
|
src = pkgs.callPackage ./source.nix {};
|
||
|
proxyVendor = true;
|
||
|
modules = ./gomod2nix.toml;
|
||
|
CGO_ENABLED = "1";
|
||
|
buildInputs = [pkgs.olm];
|
||
|
};
|
||
|
}
|