36 lines
736 B
Nix
36 lines
736 B
Nix
|
{ lib, buildGo118Module, fetchFromGitHub, isUnstable, ... }:
|
||
|
|
||
|
let
|
||
|
vendorHash = if isUnstable then
|
||
|
""
|
||
|
else
|
||
|
"sha256-d8YeLD/BQAB6IC4jvBke9EIKAe+7/MnPgVYztqjU5c4=";
|
||
|
|
||
|
in with lib;
|
||
|
buildGo118Module rec {
|
||
|
pname = "mcchunkie";
|
||
|
version = "1.0.8";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "qbit";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
sha256 = "sha256-UNPv9QXFJeNx+3RleseNVSKBZGNc3eiMsEKnfIVyoeA=";
|
||
|
};
|
||
|
|
||
|
vendorSha256 = vendorHash;
|
||
|
|
||
|
ldflags = [ "-X suah.dev/mcchunkie/plugins.version=${version}" ];
|
||
|
|
||
|
proxyVendor = true;
|
||
|
|
||
|
doCheck = false;
|
||
|
|
||
|
meta = {
|
||
|
description = "Matrix Bot";
|
||
|
homepage = "https://github.com/qbit/mcchunkie";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ qbit ];
|
||
|
};
|
||
|
}
|