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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
744 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-12-26 09:19:08 +00:00
buildGoModule rec {
pname = "glow";
2021-04-09 08:13:58 +01:00
version = "1.4.1";
2019-12-26 09:19:08 +00:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
2021-04-09 08:13:58 +01:00
sha256 = "0m673xf67q9gjhd98ysh3dvwiqbj6lgsbm20c4zxyz76vdn5k6x8";
2019-12-26 09:19:08 +00:00
};
2021-04-09 08:13:58 +01:00
vendorSha256 = "0ngasfcimizahm80gflxzz3cxz0ir10l62i03l73w8syx4wll0q4";
2019-12-26 09:19:08 +00:00
doCheck = false;
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-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";
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
};
}