gh-markdown-preview: init at 1.4.0
This commit is contained in:
parent
724d96642b
commit
7f444d342e
41
pkgs/tools/misc/gh-markdown-preview/default.nix
Normal file
41
pkgs/tools/misc/gh-markdown-preview/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildGoModule
|
||||||
|
, gh-markdown-preview
|
||||||
|
, testers
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "gh-markdown-preview";
|
||||||
|
version = "1.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "yusukebe";
|
||||||
|
repo = "gh-markdown-preview";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-WAKGtwz0CNqx86YOeLKWwfJiFcRAm1+X5kJOfsPgtjY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-O6Q9h5zcYAoKLjuzGu7f7UZY0Y5rL2INqFyJT2QZJ/E=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X github.com/yusukebe/gh-markdown-preview/cmd.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Tests need network
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
version = testers.testVersion { package = gh-markdown-preview; };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "gh extension to preview Markdown looking like on GitHub";
|
||||||
|
homepage = "https://github.com/yusukebe/gh-markdown-preview";
|
||||||
|
changelog = "https://github.com/yusukebe/gh-markdown-preview/releases/tag/${src.rev}";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ amesgen ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1375,6 +1375,8 @@ with pkgs;
|
||||||
|
|
||||||
gh-eco = callPackage ../tools/misc/gh-eco { };
|
gh-eco = callPackage ../tools/misc/gh-eco { };
|
||||||
|
|
||||||
|
gh-markdown-preview = callPackage ../tools/misc/gh-markdown-preview { };
|
||||||
|
|
||||||
ghostie = callPackage ../tools/misc/ghostie { };
|
ghostie = callPackage ../tools/misc/ghostie { };
|
||||||
|
|
||||||
glooctl = callPackage ../applications/networking/cluster/glooctl { };
|
glooctl = callPackage ../applications/networking/cluster/glooctl { };
|
||||||
|
|
Loading…
Reference in a new issue