nixpkgs/pkgs/applications/misc/charm/default.nix

27 lines
648 B
Nix
Raw Normal View History

2020-10-06 19:07:05 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "charm";
2021-12-24 03:25:32 +00:00
version = "0.9.2";
2020-10-06 19:07:05 +00:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "charm";
rev = "v${version}";
2021-12-24 03:25:32 +00:00
sha256 = "sha256-5WNkD+YfmQHGAWWfD9/ZEHnHPT0Ejm9Nz+/mn8xvU4U=";
2020-10-06 19:07:05 +00:00
};
2021-12-24 03:25:32 +00:00
vendorSha256 = "sha256-TncVMDeZ8+Wuv1o0Cjks3Ve1OsO+WXH9mClC6GNaSas=";
2020-10-06 19:07:05 +00:00
doCheck = false;
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";
license = licenses.mit;
maintainers = with maintainers; [ penguwin ];
};
}