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
740 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-12-26 10:19:08 +01:00
buildGoModule rec {
pname = "glow";
2023-02-01 14:57:51 +01:00
version = "1.5.0";
2019-12-26 10:19:08 +01:00
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
2023-02-01 14:57:51 +01:00
sha256 = "sha256-CI0S9XJtJQClpQvI6iSb5rcHafEUwr2V6+Fq560lRfM=";
2019-12-26 10:19:08 +01:00
};
2023-02-01 14:57:51 +01:00
vendorHash = "sha256-2QrHBbhJ04r/vPK2m8J2KZSFrREDCc18tlKd7evghBc=";
2019-12-26 10:19:08 +01:00
doCheck = false;
2021-08-26 08:45:51 +02:00
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
meta = with lib; {
2020-10-06 20:09:40 +02:00
description = "Render markdown on the CLI, with pizzazz!";
homepage = "https://github.com/charmbracelet/glow";
2020-12-25 15:07:12 +01:00
changelog = "https://github.com/charmbracelet/glow/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne penguwin ];
2019-12-26 10:19:08 +01:00
};
}