2019-12-26 09:19:08 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "glow";
|
2020-01-06 13:58:52 +00:00
|
|
|
version = "0.1.6";
|
2019-12-26 09:19:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "glow";
|
|
|
|
rev = "v${version}";
|
2020-01-06 13:58:52 +00:00
|
|
|
sha256 = "0q35napi1aa6dfrqz26hvhzijymb9sxsf3mrrn1mh7ssgkhvmqqc";
|
2019-12-26 09:19:08 +00:00
|
|
|
};
|
|
|
|
|
2020-01-06 13:58:52 +00:00
|
|
|
modSha256 = "07imn9p0s79x1h45dk05hjcm6946d84j6k5pnljqrz4zk64hy26c";
|
2019-12-26 09:19:08 +00:00
|
|
|
|
2020-01-06 13:58:52 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2019-12-26 09:19:08 +00:00
|
|
|
description = "Render markdown on the CLI";
|
2020-01-06 13:58:52 +00:00
|
|
|
homepage = "https://github.com/charmbracelet/glow";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ehmry filalex77 ];
|
2019-12-26 09:19:08 +00:00
|
|
|
};
|
|
|
|
}
|