toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / gh / gh-markdown-preview / package.nix
blob1c39eb2d3ce6e7b09e11a396bfa48ee65301b7ce
2   lib,
3   fetchFromGitHub,
4   buildGoModule,
5   gh-markdown-preview,
6   testers,
7 }:
9 buildGoModule rec {
10   pname = "gh-markdown-preview";
11   version = "1.8.0";
13   src = fetchFromGitHub {
14     owner = "yusukebe";
15     repo = "gh-markdown-preview";
16     rev = "v${version}";
17     hash = "sha256-y9AiHmBfDSJ6oCevUAUkg18qHe/oP7A6PLiz3MZqU0s=";
18   };
20   vendorHash = "sha256-O6Q9h5zcYAoKLjuzGu7f7UZY0Y5rL2INqFyJT2QZJ/E=";
22   ldflags = [
23     "-s"
24     "-w"
25     "-X github.com/yusukebe/gh-markdown-preview/cmd.Version=${version}"
26   ];
28   # Tests need network
29   doCheck = false;
31   passthru.tests = {
32     version = testers.testVersion { package = gh-markdown-preview; };
33   };
35   meta = {
36     description = "gh extension to preview Markdown looking like on GitHub";
37     homepage = "https://github.com/yusukebe/gh-markdown-preview";
38     changelog = "https://github.com/yusukebe/gh-markdown-preview/releases/tag/${src.rev}";
39     license = lib.licenses.mit;
40     maintainers = with lib.maintainers; [ amesgen ];
41     mainProgram = "gh-markdown-preview";
42   };