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