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

24 lines
633 B
Nix
Raw Normal View History

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