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

28 lines
754 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-12-26 09:19:08 +00:00
buildGoModule rec {
pname = "glow";
2021-03-14 03:15:40 +00:00
version = "1.4.0";
2019-12-26 09:19:08 +00:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
2021-03-14 03:15:40 +00:00
sha256 = "13ip29yxjc2fhsk12m6hj6mswrgc9a4m8gf0hiffd1nh5313mqxi";
2019-12-26 09:19:08 +00:00
};
2021-03-14 03:15:40 +00:00
vendorSha256 = "0i49b1yq9x5n59k29yacxyif928r0w7hl6azfvr5k3rssg0y4l7f";
2019-12-26 09:19:08 +00:00
doCheck = false;
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
meta = with lib; {
2020-10-06 18:09:40 +00:00
description = "Render markdown on the CLI, with pizzazz!";
homepage = "https://github.com/charmbracelet/glow";
2020-12-25 14:07:12 +00:00
changelog = "https://github.com/charmbracelet/glow/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne penguwin ];
2019-12-26 09:19:08 +00:00
};
}