2020-10-06 19:07:05 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "charm";
|
2022-08-15 20:17:01 +00:00
|
|
|
version = "0.12.4";
|
2020-10-06 19:07:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "charm";
|
|
|
|
rev = "v${version}";
|
2022-08-15 20:17:01 +00:00
|
|
|
sha256 = "sha256-1uxgiVJGdTE8R0gEQ515zxoKXSs5lTGAURNlgJYMuMI=";
|
2020-10-06 19:07:05 +00:00
|
|
|
};
|
|
|
|
|
2022-08-15 20:17:01 +00:00
|
|
|
vendorSha256 = "sha256-ouqA4Rg03M9dAUu2Uxmvez7LJTcrqYvqPNVQQmqwoFQ=";
|
2020-10-06 19:07:05 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
2020-10-06 19:07:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage your charm account on the CLI";
|
|
|
|
homepage = "https://github.com/charmbracelet/charm";
|
2022-05-06 16:04:41 +00:00
|
|
|
changelog = "https://github.com/charmbracelet/charm/releases/tag/v${version}";
|
2020-10-06 19:07:05 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ penguwin ];
|
|
|
|
};
|
|
|
|
}
|