diff --git a/pkgs/by-name/ph/phlare/package.nix b/pkgs/by-name/ph/phlare/package.nix index b1290953a852..96c1a33fa74b 100644 --- a/pkgs/by-name/ph/phlare/package.nix +++ b/pkgs/by-name/ph/phlare/package.nix @@ -1,6 +1,11 @@ -{ lib, buildGoModule, fetchFromGitHub }: - -buildGoModule rec { +{ + lib, + buildGo122Module, + fetchFromGitHub, +}: +# breaks in go 1.23 with `invalid reference to runtime.aeskeysched` +# won't be fixed upstream since the repository is archived. +buildGo122Module rec { pname = "phlare"; version = "0.6.1"; @@ -14,17 +19,20 @@ buildGoModule rec { proxyVendor = true; vendorHash = "sha256-l7+iDT9GAP9BX+xKvnx57iVF8wCM1YyHwq6dD9PbTDI="; - ldflags = let - prefix = "github.com/grafana/phlare/pkg/util/build"; - in [ - "-s" "-w" - # https://github.com/grafana/phlare/blob/v0.6.1/Makefile#L32 - "-X ${prefix}.Version=${version}" - "-X ${prefix}.Branch=v${version}" - "-X ${prefix}.Revision=v${version}" - "-X ${prefix}.BuildUser=nix" - "-X ${prefix}.BuildDate=1980-01-01T00:00:00Z" - ]; + ldflags = + let + prefix = "github.com/grafana/phlare/pkg/util/build"; + in + [ + "-s" + "-w" + # https://github.com/grafana/phlare/blob/v0.6.1/Makefile#L32 + "-X ${prefix}.Version=${version}" + "-X ${prefix}.Branch=v${version}" + "-X ${prefix}.Revision=v${version}" + "-X ${prefix}.BuildUser=nix" + "-X ${prefix}.BuildDate=1980-01-01T00:00:00Z" + ]; subPackages = [ "cmd/phlare"