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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
712 B
Nix
Raw Normal View History

2020-10-06 21:07:05 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "charm";
2022-08-10 17:11:05 +02:00
version = "0.12.3";
2020-10-06 21:07:05 +02:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "charm";
rev = "v${version}";
2022-08-10 17:11:05 +02:00
sha256 = "sha256-FQNOU75mZqeXAVFOxTXri6bfkJZx4A/YhXMf8bFAKxs=";
2020-10-06 21:07:05 +02:00
};
2022-08-10 17:11:05 +02:00
vendorSha256 = "sha256-6Grg6/q4idhWk6slxV2GBblmOA5dclFh/PcGtPXUTd4=";
2020-10-06 21:07:05 +02:00
2021-08-26 08:45:51 +02:00
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
2020-10-06 21:07:05 +02:00
meta = with lib; {
description = "Manage your charm account on the CLI";
homepage = "https://github.com/charmbracelet/charm";
2022-05-06 18:04:41 +02:00
changelog = "https://github.com/charmbracelet/charm/releases/tag/v${version}";
2020-10-06 21:07:05 +02:00
license = licenses.mit;
maintainers = with maintainers; [ penguwin ];
};
}