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

28 lines
754 B
Nix
Raw Normal View History

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