2024-01-30 14:00:15 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gh-markdown-preview";
|
2024-07-17 16:05:33 +02:00
|
|
|
version = "1.4.2";
|
2024-01-30 14:00:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yusukebe";
|
|
|
|
repo = "gh-markdown-preview";
|
|
|
|
rev = "v${version}";
|
2024-07-17 16:05:33 +02:00
|
|
|
sha256 = "sha256-UBveXL4/3GxxIVjqG0GuTbkGkzXFc/stew2s+dTj9BI=";
|
2024-01-30 14:00:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-O6Q9h5zcYAoKLjuzGu7f7UZY0Y5rL2INqFyJT2QZJ/E=";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/yusukebe/gh-markdown-preview/cmd.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/yusukebe/gh-markdown-preview";
|
|
|
|
description = "gh extension to preview markdown looks like GitHub";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tboerger ];
|
|
|
|
};
|
|
|
|
}
|