phlare: format using nixfmt

(cherry picked from commit 7e91f38847)
This commit is contained in:
Noa Aarts 2024-11-16 19:34:57 +01:00 committed by github-actions[bot]
parent f7ad229b11
commit 0431a90dd6

View File

@ -1,4 +1,8 @@
{ lib, buildGoModule, fetchFromGitHub }: {
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec { buildGoModule rec {
pname = "phlare"; pname = "phlare";
@ -14,17 +18,20 @@ buildGoModule rec {
proxyVendor = true; proxyVendor = true;
vendorHash = "sha256-l7+iDT9GAP9BX+xKvnx57iVF8wCM1YyHwq6dD9PbTDI="; vendorHash = "sha256-l7+iDT9GAP9BX+xKvnx57iVF8wCM1YyHwq6dD9PbTDI=";
ldflags = let ldflags =
prefix = "github.com/grafana/phlare/pkg/util/build"; let
in [ prefix = "github.com/grafana/phlare/pkg/util/build";
"-s" "-w" in
# https://github.com/grafana/phlare/blob/v0.6.1/Makefile#L32 [
"-X ${prefix}.Version=${version}" "-s"
"-X ${prefix}.Branch=v${version}" "-w"
"-X ${prefix}.Revision=v${version}" # https://github.com/grafana/phlare/blob/v0.6.1/Makefile#L32
"-X ${prefix}.BuildUser=nix" "-X ${prefix}.Version=${version}"
"-X ${prefix}.BuildDate=1980-01-01T00:00:00Z" "-X ${prefix}.Branch=v${version}"
]; "-X ${prefix}.Revision=v${version}"
"-X ${prefix}.BuildUser=nix"
"-X ${prefix}.BuildDate=1980-01-01T00:00:00Z"
];
subPackages = [ subPackages = [
"cmd/phlare" "cmd/phlare"