3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/charm/default.nix

27 lines
660 B
Nix
Raw Normal View History

2020-10-06 20:07:05 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "charm";
2020-10-14 14:10:12 +01:00
version = "0.8.4";
2020-10-06 20:07:05 +01:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "charm";
rev = "v${version}";
2020-10-14 14:10:12 +01:00
sha256 = "0wsh83kchqakvx7kgs2s31rzsvnfr47jk6pbmqzjv1kqmnlhc3rh";
2020-10-06 20:07:05 +01:00
};
2020-10-14 14:10:12 +01:00
vendorSha256 = "1lg4bbdzgnw50v6m6p7clibwm8m82kdr1jizgbmhfmzy15d5sfll";
2020-10-06 20:07:05 +01:00
doCheck = false;
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
meta = with lib; {
description = "Manage your charm account on the CLI";
homepage = "https://github.com/charmbracelet/charm";
license = licenses.mit;
maintainers = with maintainers; [ penguwin ];
};
}