2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-12-26 09:19:08 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "glow";
|
2020-11-25 01:08:35 +00:00
|
|
|
version = "1.2.1";
|
2019-12-26 09:19:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "glow";
|
|
|
|
rev = "v${version}";
|
2020-11-25 01:08:35 +00:00
|
|
|
sha256 = "1jf9d8zwhvg9pc5g29lwz2r0lc59h1smwb5mjswxlvljpgbj7jwh";
|
2019-12-26 09:19:08 +00:00
|
|
|
};
|
|
|
|
|
2020-11-22 15:54:09 +00:00
|
|
|
vendorSha256 = "1p50qr7hbc8vyifa23z7xr43b4fpmwdzg7hqs503c124kpbpk45z";
|
2019-12-26 09:19:08 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-01-06 13:58:52 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2020-10-06 18:09:40 +00:00
|
|
|
description = "Render markdown on the CLI, with pizzazz!";
|
2020-01-06 13:58:52 +00:00
|
|
|
homepage = "https://github.com/charmbracelet/glow";
|
|
|
|
license = licenses.mit;
|
2020-12-06 11:37:47 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne penguwin ];
|
2019-12-26 09:19:08 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|