2020-10-06 20:07:05 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "charm";
|
2020-11-26 02:56:19 +00:00
|
|
|
version = "0.8.5";
|
2020-10-06 20:07:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "charm";
|
|
|
|
rev = "v${version}";
|
2020-11-26 02:56:19 +00:00
|
|
|
sha256 = "0cgl5dpyzc4lciij9q9yghppiclrdnrl1jsbizfgh2an3s18ab8k";
|
2020-10-06 20:07:05 +01:00
|
|
|
};
|
|
|
|
|
2020-11-26 02:56:19 +00:00
|
|
|
vendorSha256 = "1spzawnk2fslc1m14dp8lx4vpnxwz7xgm1hxbpz4bqlqz1hfd6ax";
|
2020-10-06 20:07:05 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage your charm account on the CLI";
|
|
|
|
homepage = "https://github.com/charmbracelet/charm";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ penguwin ];
|
|
|
|
};
|
|
|
|
}
|