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

25 lines
634 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-12-26 09:19:08 +00:00
buildGoModule rec {
pname = "glow";
2020-01-09 13:27:05 +00:00
version = "0.2.0";
2019-12-26 09:19:08 +00:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
2020-01-09 13:27:05 +00:00
sha256 = "0vhl8d7xxqqyl916nh8sgm1xdaf7xlc3r18464bd2av22q9yz68n";
2019-12-26 09:19:08 +00:00
};
vendorSha256 = "1c16s5xiqr36azh2w90wg14jlw67ca2flbgjijpz7qd0ypxyfqlk";
2019-12-26 09:19:08 +00:00
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
meta = with lib; {
2019-12-26 09:19:08 +00:00
description = "Render markdown on the CLI";
homepage = "https://github.com/charmbracelet/glow";
license = licenses.mit;
maintainers = with maintainers; [ ehmry filalex77 ];
2019-12-26 09:19:08 +00:00
};
}