From 554c88c955e4c2f940578659707e3995b7fc626e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 8 Oct 2024 17:57:46 +0200 Subject: [PATCH] go-licence-detector: init at 0.7.0 (cherry picked from commit 88e28310f43eaa3d7098c4ae24e3cd682c8627ff) --- .../go/go-licence-detector/package.nix | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/go/go-licence-detector/package.nix diff --git a/pkgs/by-name/go/go-licence-detector/package.nix b/pkgs/by-name/go/go-licence-detector/package.nix new file mode 100644 index 0000000000000..dd08b14598d40 --- /dev/null +++ b/pkgs/by-name/go/go-licence-detector/package.nix @@ -0,0 +1,26 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "go-licence-detector"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "elastic"; + repo = "go-licence-detector"; + rev = "v${version}"; + hash = "sha256-43MyzEF7BZ7pcgzDvXx9SjXGHaLozmWkGWUO/yf6K98="; + }; + + vendorHash = "sha256-7vIP5pGFH6CbW/cJp+DiRg2jFcLFEBl8dQzUw1ogTTA="; + + meta = with lib; { + description = "Detect licences in Go projects and generate documentation"; + homepage = "https://github.com/elastic/go-licence-detector"; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +}