nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "charm";
5 version = "0.12.5";
6
7 src = fetchFromGitHub {
8 owner = "charmbracelet";
9 repo = "charm";
10 rev = "v${version}";
11 sha256 = "sha256-lTjpvh0bl4Fk+d3mcDvVQY3Ef6UYE23qoS60nltVcsU=";
12 };
13
14 vendorSha256 = "sha256-TNxAtx+fT6CEpa2g/tNl9sCwt3kAmNq7G870TPt2MQ4=";
15
16 ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
17
18 meta = with lib; {
19 description = "Manage your charm account on the CLI";
20 homepage = "https://github.com/charmbracelet/charm";
21 changelog = "https://github.com/charmbracelet/charm/releases/tag/v${version}";
22 license = licenses.mit;
23 maintainers = with maintainers; [ penguwin ];
24 };
25}