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

27 lines
664 B
Nix
Raw Normal View History

2020-10-06 21:07:05 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "charm";
2021-02-11 00:16:02 +01:00
version = "0.8.6";
2020-10-06 21:07:05 +02:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "charm";
rev = "v${version}";
2021-02-11 00:16:02 +01:00
sha256 = "0mjq0yy60czsw40h5n515qmi6bbvhrddll4sn5r2q1nf9pvviqr6";
2020-10-06 21:07:05 +02:00
};
2020-11-26 03:56:19 +01:00
vendorSha256 = "1spzawnk2fslc1m14dp8lx4vpnxwz7xgm1hxbpz4bqlqz1hfd6ax";
2020-10-06 21:07:05 +02:00
doCheck = false;
2021-02-11 00:16:02 +01:00
buildFlagsArray = [ "-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";
license = licenses.mit;
maintainers = with maintainers; [ penguwin ];
};
}