2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-12-26 09:19:08 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "glow";
|
2020-10-14 03:49:39 +01:00
|
|
|
version = "1.0.2";
|
2019-12-26 09:19:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "glow";
|
|
|
|
rev = "v${version}";
|
2020-10-14 03:49:39 +01:00
|
|
|
sha256 ="0jyl5ln7c2naawmw7bljzrldr96xyb5rbis6y6blmyghr0vx07zb";
|
2019-12-26 09:19:08 +00:00
|
|
|
};
|
|
|
|
|
2020-10-14 03:49:39 +01:00
|
|
|
vendorSha256 = "0z3r8fvpy36ybgb18sr0lril1sg8z7s99xv1a6g1v3zdnj3zimav";
|
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";
|
|
|
|
license = licenses.mit;
|
2020-10-06 19:09:40 +01:00
|
|
|
maintainers = with maintainers; [ ehmry filalex77 penguwin ];
|
2019-12-26 09:19:08 +00:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|