From c26ef0aad72835059855d823b6218e870dd5fc76 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 ba1d89f6..b3caed4f 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