From 7a72f96ce1bd80ec372565e11a7fb1849391d3e1 Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Tue, 8 Oct 2024 16:46:32 +0000 Subject: [PATCH] Run go-makefile-maker --- shell.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/shell.nix b/shell.nix index 4095237..7943f7c 100644 --- a/shell.nix +++ b/shell.nix @@ -2,6 +2,30 @@ with pkgs; +let + # TODO: drop after https://github.com/NixOS/nixpkgs/pull/347304 got merged + go-licence-detector = 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 ]; + }; + }; +in + mkShell { nativeBuildInputs = [ go-licence-detector