From ce8a12c7e9df040a1f62446ac2a15f8f0de3ba2d Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Tue, 8 Oct 2024 16:46:29 +0000 Subject: [PATCH] Run go-makefile-maker --- shell.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/shell.nix b/shell.nix index 3c99a6d..6da0be7 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 = [ ginkgo