doc2go: init at 0.4.1

This commit is contained in:
06kellyjac 2023-07-19 15:53:24 +01:00
parent aca9c8086f
commit 7796d4c32c
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "doc2go";
version = "0.4.1";
src = fetchFromGitHub {
owner = "abhinav";
repo = "doc2go";
rev = "v${version}";
hash = "sha256-iypcjj6FFsus9mrafLBX0u7bHnzs718aEWC5dO3q0es=";
};
vendorHash = "sha256-IMqYCVGsspYigTmYNHD1b6Sgzxl47cdiCs+rq4C3Y08=";
ldflags = [ "-s" "-w" "-X main._version=${version}" ];
subPackages = [ "." ];
checkFlags = [
# needs to fetch additional go modules
"-skip=TestFinder_ImportedPackage/Modules"
];
preCheck = ''
# run all tests
unset subPackages
'';
meta = with lib; {
homepage = "https://github.com/abhinav/doc2go";
changelog = "https://github.com/abhinav/doc2go/blob/${src.rev}/CHANGELOG.md";
description = "Your Go project's documentation, to-go";
longDescription = ''
doc2go is a command line tool that generates static HTML documentation
from your Go code. It is a self-hosted static alternative to
https://pkg.go.dev/ and https://godocs.io/.
'';
license = with licenses; [
# general project license
asl20
# internal/godoc/synopsis*.go adapted from golang source
bsd3
];
maintainers = with maintainers; [ jk ];
};
}

View File

@ -800,6 +800,8 @@ with pkgs;
docker-slim = callPackage ../applications/virtualization/docker-slim { };
doc2go = callPackage ../development/tools/doc2go { };
docker-sync = callPackage ../tools/misc/docker-sync { };
undocker = callPackage ../tools/misc/undocker { };