1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-26 07:43:45 +01:00
github.com-tboerger-nixos-c.../overlays/gh-markdown-preview/default.nix

31 lines
745 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gh-markdown-preview";
2024-07-17 16:05:33 +02:00
version = "1.4.2";
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=";
};
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 ];
};
}