From 852dc0f4de780612432f7b516b42bd57df4e667e Mon Sep 17 00:00:00 2001 From: Adrien Raffin-Caboisse Date: Mon, 16 May 2022 14:40:05 +0200 Subject: [PATCH] feat: add golangci-lint in nix develop --- flake.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/flake.nix b/flake.nix index b0856bea..a726b1f2 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,24 @@ nativeBuildInputs = [ pkgs.installShellFiles ]; }; + golangci-lint = + pkgs.buildGoModule rec { + pname = "golangci-lint"; + version = "1.46.1"; + + src = pkgs.fetchFromGitHub { + owner = "golangci"; + repo = "golangci-lint"; + rev = "v${version}"; + sha256 = "sha256-BUXEg+4r9L/gqe4DhTlhN55P3jWt7ZyWFQycO6QePrw="; + }; + + vendorSha256 = "sha256-sEzWUeVk5GB0H41wrp12P8sBWRjg0FHUX6ABDEEBqK8="; + + nativeBuildInputs = [ pkgs.installShellFiles ]; + }; + + protoc-gen-grpc-gateway = pkgs.buildGoModule rec { pname = "grpc-gateway";