2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-12-26 09:19:08 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "glow";
|
2020-12-25 12:54:58 +00:00
|
|
|
version = "1.3.0";
|
2019-12-26 09:19:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "glow";
|
|
|
|
rev = "v${version}";
|
2020-12-25 12:54:58 +00:00
|
|
|
sha256 = "1y5cdqmyc2z2qk74l0r2c4mnw0jfibrf2ry7qcnmh96nhalq9m7j";
|
2019-12-26 09:19:08 +00:00
|
|
|
};
|
|
|
|
|
2020-12-25 12:54:58 +00:00
|
|
|
vendorSha256 = "11x6hshbqg1a39a1hwpfivgrhyk7ykw2aqylira3dqv039b1f639";
|
2019-12-26 09:19:08 +00:00
|
|
|
|
2020-08-04 01:26:27 +01: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 19:09:40 +01:00
|
|
|
description = "Render markdown on the CLI, with pizzazz!";
|
2020-01-06 13:58:52 +00:00
|
|
|
homepage = "https://github.com/charmbracelet/glow";
|
2020-12-25 14:07:12 +00:00
|
|
|
changelog = "https://github.com/charmbracelet/glow/releases/tag/v${version}";
|
2020-01-06 13:58:52 +00:00
|
|
|
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 04:58:04 +01:00
|
|
|
}
|