Skip to content

Commit

Permalink
Override golangci-lint to use go 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed May 30, 2022
1 parent 16bf061 commit 5a1e69f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,29 @@
nativeBuildInputs = [ pkgs.installShellFiles ];
};

golangci-lint = prev.golangci-lint.override {
# Override https://github.com/NixOS/nixpkgs/pull/166801 which changed this
# to buildGo118Module because it does not build on Darwin.
inherit (prev) buildGoModule;
};

# golangci-lint =
# pkgs.buildGo117Module rec {
# pname = "golangci-lint";
# version = "1.46.2";
#
# src = pkgs.fetchFromGitHub {
# owner = "golangci";
# repo = "golangci-lint";
# rev = "v${version}";
# sha256 = "sha256-7sDAwWz+qoB/ngeH35tsJ5FZUfAQvQsU6kU9rUHIHMk=";
# };
#
# vendorSha256 = "sha256-w38OKN6HPoz37utG/2QSPMai55IRDXCIIymeMe6ogIU=";
#
# nativeBuildInputs = [ pkgs.installShellFiles ];
# };

protoc-gen-grpc-gateway =
pkgs.buildGoModule rec {
pname = "grpc-gateway";
Expand Down

0 comments on commit 5a1e69f

Please sign in to comment.