28 lines
754 B
Nix
28 lines
754 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "glow";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "charmbracelet";
|
|
repo = "glow";
|
|
rev = "v${version}";
|
|
sha256 = "1y5cdqmyc2z2qk74l0r2c4mnw0jfibrf2ry7qcnmh96nhalq9m7j";
|
|
};
|
|
|
|
vendorSha256 = "11x6hshbqg1a39a1hwpfivgrhyk7ykw2aqylira3dqv039b1f639";
|
|
|
|
doCheck = false;
|
|
|
|
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Render markdown on the CLI, with pizzazz!";
|
|
homepage = "https://github.com/charmbracelet/glow";
|
|
changelog = "https://github.com/charmbracelet/glow/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Br1ght0ne penguwin ];
|
|
};
|
|
}
|