nixpkgs/pkgs/applications/editors/glow/default.nix

25 lines
631 B
Nix
Raw Normal View History

2019-12-26 09:19:08 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "glow";
version = "0.1.6";
2019-12-26 09:19:08 +00:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
sha256 = "0q35napi1aa6dfrqz26hvhzijymb9sxsf3mrrn1mh7ssgkhvmqqc";
2019-12-26 09:19:08 +00:00
};
modSha256 = "07imn9p0s79x1h45dk05hjcm6946d84j6k5pnljqrz4zk64hy26c";
2019-12-26 09:19:08 +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";
homepage = "https://github.com/charmbracelet/glow";
license = licenses.mit;
maintainers = with maintainers; [ ehmry filalex77 ];
2019-12-26 09:19:08 +00:00
};
}