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";
2020-01-09 13:27:05 +00:00
version = "0.2.0";
2019-12-26 09:19:08 +00:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
2020-01-09 13:27:05 +00:00
sha256 = "0vhl8d7xxqqyl916nh8sgm1xdaf7xlc3r18464bd2av22q9yz68n";
2019-12-26 09:19:08 +00:00
};
2020-01-09 13:27:05 +00:00
modSha256 = "0r0yq7kgz7i1wf4gxxihdrn1c8mi4wcyhadncxbln24s9c5apxsf";
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
};
}