mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-22 16:07:34 +00:00
Override golangci-lint to use go 1.17
This commit is contained in:
parent
a443255b3e
commit
4ffd3eacb0
23
flake.nix
23
flake.nix
@ -46,6 +46,29 @@
|
|||||||
nativeBuildInputs = [ pkgs.installShellFiles ];
|
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 =
|
protoc-gen-grpc-gateway =
|
||||||
pkgs.buildGoModule rec {
|
pkgs.buildGoModule rec {
|
||||||
pname = "grpc-gateway";
|
pname = "grpc-gateway";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user