xin/pkgs/mcchunkie.nix

34 lines
780 B
Nix
Raw Normal View History

2022-11-01 07:10:12 -06:00
{ lib, buildGoModule, fetchFromGitHub, isUnstable, ... }:
2022-08-25 12:21:35 -06:00
let
vendorHash = if isUnstable then
2022-11-04 10:09:29 -06:00
"sha256-GCQckQe9Y96upJX2X9RDXoQIyH/SD9CniPVsIbdAPmM="
2022-08-25 12:21:35 -06:00
else
2022-11-04 10:09:29 -06:00
"sha256-3xIIb+fzbTOq9jf0STL3W9re5yH0JN4RO9dd/Ic1aIg=";
2022-11-07 07:23:27 -07:00
in with lib;
2022-11-01 07:10:12 -06:00
buildGoModule rec {
2022-08-25 12:21:35 -06:00
pname = "mcchunkie";
2022-11-04 10:09:29 -06:00
version = "1.0.11";
2022-08-25 12:21:35 -06:00
src = fetchFromGitHub {
owner = "qbit";
repo = pname;
rev = "v${version}";
2022-11-04 10:09:29 -06:00
sha256 = "sha256-SZx5h+RWgG1tq4kLZ4lh4jlPjprz3Gp3gPLfb/7cNzQ=";
2022-08-25 12:21:35 -06:00
};
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 ];
};
}