3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/glow/default.nix

27 lines
677 B
Nix
Raw Normal View History

{ 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
doCheck = false;
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
meta = with lib; {
2020-10-06 19:09:40 +01:00
description = "Render markdown on the CLI, with pizzazz!";
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
};
}