2020-03-27 08:33:21 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-12-26 10:19:08 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "glow";
|
2021-03-14 04:15:40 +01:00
|
|
|
version = "1.4.0";
|
2019-12-26 10:19:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "glow";
|
|
|
|
rev = "v${version}";
|
2021-03-14 04:15:40 +01:00
|
|
|
sha256 = "13ip29yxjc2fhsk12m6hj6mswrgc9a4m8gf0hiffd1nh5313mqxi";
|
2019-12-26 10:19:08 +01:00
|
|
|
};
|
|
|
|
|
2021-03-14 04:15:40 +01:00
|
|
|
vendorSha256 = "0i49b1yq9x5n59k29yacxyif928r0w7hl6azfvr5k3rssg0y4l7f";
|
2019-12-26 10:19:08 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-01-06 14:58:52 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2020-10-06 20:09:40 +02:00
|
|
|
description = "Render markdown on the CLI, with pizzazz!";
|
2020-01-06 14:58:52 +01:00
|
|
|
homepage = "https://github.com/charmbracelet/glow";
|
2020-12-25 15:07:12 +01:00
|
|
|
changelog = "https://github.com/charmbracelet/glow/releases/tag/v${version}";
|
2020-01-06 14:58:52 +01:00
|
|
|
license = licenses.mit;
|
2020-12-06 12:37:47 +01:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne penguwin ];
|
2019-12-26 10:19:08 +01:00
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|