2020-03-27 08:33:21 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-12-26 10:19:08 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "glow";
|
2020-01-09 14:27:05 +01:00
|
|
|
version = "0.2.0";
|
2019-12-26 10:19:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "glow";
|
|
|
|
rev = "v${version}";
|
2020-01-09 14:27:05 +01:00
|
|
|
sha256 = "0vhl8d7xxqqyl916nh8sgm1xdaf7xlc3r18464bd2av22q9yz68n";
|
2019-12-26 10:19:08 +01:00
|
|
|
};
|
|
|
|
|
2020-05-01 03:59:00 +02:00
|
|
|
vendorSha256 = "1c16s5xiqr36azh2w90wg14jlw67ca2flbgjijpz7qd0ypxyfqlk";
|
2019-12-26 10:19:08 +01:00
|
|
|
|
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; {
|
2019-12-26 10:19:08 +01:00
|
|
|
description = "Render markdown on the CLI";
|
2020-01-06 14:58:52 +01:00
|
|
|
homepage = "https://github.com/charmbracelet/glow";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ehmry filalex77 ];
|
2019-12-26 10:19:08 +01:00
|
|
|
};
|
2020-05-01 03:59:00 +02:00
|
|
|
}
|