2020-10-07 09:15:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "charm";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.12.6";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "charm";
|
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-RtUHJIMbodICEDIhjH/QZlAS7dxBsL/uNYA2IoObAg0=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
vendorHash = "sha256-V5azvQ8vMkgF2Myt6h5Gw09b+Xwg1XLyTImG52qQ+20=";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage your charm account on the CLI";
|
|
|
|
homepage = "https://github.com/charmbracelet/charm";
|
2022-05-18 14:49:53 +00:00
|
|
|
changelog = "https://github.com/charmbracelet/charm/releases/tag/v${version}";
|
2020-10-07 09:15:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ penguwin ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "charm";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
}
|