Skip to content

Commit

Permalink
build more dev tools with same go version
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Sep 3, 2024
1 parent 14edaaf commit 5547985
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
{
overlay = _: prev: let
pkgs = nixpkgs.legacyPackages.${prev.system};
buildGo = pkgs.buildGo123Module;
in rec {
headscale = pkgs.buildGo123Module rec {
headscale = buildGo rec {
pname = "headscale";
version = headscaleVersion;
src = pkgs.lib.cleanSource self;
Expand All @@ -38,7 +39,7 @@
ldflags = ["-s" "-w" "-X github.com/juanfont/headscale/cmd/headscale/cli.Version=v${version}"];
};

protoc-gen-grpc-gateway = pkgs.buildGoModule rec {
protoc-gen-grpc-gateway = buildGo rec {
pname = "grpc-gateway";
version = "2.22.0";

Expand All @@ -57,7 +58,23 @@
};

golangci-lint = prev.golangci-lint.override {
buildGoModule = pkgs.buildGo123Module;
buildGoModule = buildGo;
};

goreleaser = prev.goreleaser.override {
buildGoModule = buildGo;
};

gotestsum = prev.gotestsum.override {
buildGoModule = buildGo;
};

gotests = prev.gotests.override {
buildGoModule = buildGo;
};

gofumpt = prev.gofumpt.override {
buildGoModule = buildGo;
};
};
}
Expand Down

0 comments on commit 5547985

Please sign in to comment.