mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #279440 from brpaz/add-gomarkdoc
gomarkdoc: init at 1.1.0
This commit is contained in:
commit
421628cb97
2 changed files with 50 additions and 0 deletions
|
@ -2795,6 +2795,12 @@
|
|||
githubId = 40476330;
|
||||
name = "brokenpip3";
|
||||
};
|
||||
brpaz = {
|
||||
email = "oss@brunopaz.dev";
|
||||
github = "brpaz";
|
||||
githubId = 184563;
|
||||
name = "Bruno Paz";
|
||||
};
|
||||
bryanasdev000 = {
|
||||
email = "bryanasdev000@gmail.com";
|
||||
matrix = "@bryanasdev000:matrix.org";
|
||||
|
|
44
pkgs/by-name/go/gomarkdoc/package.nix
Normal file
44
pkgs/by-name/go/gomarkdoc/package.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
gomarkdoc
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gomarkdoc";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "princjef";
|
||||
repo = "gomarkdoc";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-eMH+F1ZXAKHqnrvOJvCETm2NiDwY03IFHrDNYr3jaW8=";
|
||||
};
|
||||
|
||||
subPackages = [ "cmd/gomarkdoc" ];
|
||||
|
||||
vendorHash = "sha256-gCuYqk9agH86wfGd7k6QwLUiG3Mv6TrEd9tdyj8AYPs=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
"-X main.commit=${src.rev}"
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = gomarkdoc;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate markdown documentation for Go (golang) code";
|
||||
homepage = "https://github.com/princjef/gomarkdoc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ brpaz ];
|
||||
mainProgram = "gomarkdoc";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue