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

27 lines
678 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-12-26 09:19:08 +00:00
buildGoModule rec {
pname = "glow";
2020-10-27 14:33:16 +00:00
version = "1.1.0";
2019-12-26 09:19:08 +00:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
2020-10-27 14:33:16 +00:00
sha256 = "016psbm93ni81k87i9gx3cjr59j1fmpq5x8vz0ydabczzdshd1py";
2019-12-26 09:19:08 +00:00
};
2020-10-27 14:33:16 +00:00
vendorSha256 = "0gvlbj8b5sqk93ahg4b2krwrmr8ljz7cah77fxaxcd98apap0pw6";
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
};
}