From ebc297879d8f17ac5e89d0f0abf1736f706bfbaf Mon Sep 17 00:00:00 2001 From: Bruno Paz <184563+brpaz@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:46:07 +0000 Subject: [PATCH 1/2] maintainers: add brpaz --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 31320d5eb44e..06b884cac601 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2759,6 +2759,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"; From 1c7a0e3453f2429e63150e7b1a3834a437693451 Mon Sep 17 00:00:00 2001 From: Bruno Paz <184563+brpaz@users.noreply.github.com> Date: Sun, 7 Jan 2024 19:39:14 +0000 Subject: [PATCH 2/2] gomarkdoc: init at 1.1.0 --- pkgs/by-name/go/gomarkdoc/package.nix | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/go/gomarkdoc/package.nix diff --git a/pkgs/by-name/go/gomarkdoc/package.nix b/pkgs/by-name/go/gomarkdoc/package.nix new file mode 100644 index 000000000000..cea73b16081d --- /dev/null +++ b/pkgs/by-name/go/gomarkdoc/package.nix @@ -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"; + }; +}