1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00
github.com-tboerger-nixos-c.../overlays/gh-markdown-preview/default.nix
2024-07-17 16:05:33 +02:00

31 lines
745 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gh-markdown-preview";
version = "1.4.2";
src = fetchFromGitHub {
owner = "yusukebe";
repo = "gh-markdown-preview";
rev = "v${version}";
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 ];
};
}