nixpkgs/pkgs/servers/monitoring/phlare/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-08 13:42:14 +01:00
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "phlare";
2023-06-18 13:23:20 +02:00
version = "0.6.1";
2022-12-08 13:42:14 +01:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "grafana";
repo = "phlare";
2023-06-18 13:23:20 +02:00
sha256 = "sha256-iaNwOV8XP6H8DDs2HcOIIl8sNM6Xi5VsRxSb80mvvLo=";
2022-12-08 13:42:14 +01:00
};
proxyVendor = true;
2023-06-18 13:23:20 +02:00
vendorHash = "sha256-y8IWS5OQkDYRTt5xOzzbjb1ya6AiFtvAc0YNH99KZBA=";
2022-12-08 13:42:14 +01:00
ldflags = let
prefix = "github.com/grafana/phlare/pkg/util/build";
in [
"-s" "-w"
2023-06-18 13:23:20 +02:00
# https://github.com/grafana/phlare/blob/v0.6.1/Makefile#L32
2022-12-08 13:42:14 +01:00
"-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"
"cmd/profilecli"
];
meta = with lib; {
description = "Grafana Phlare is an open source database that provides fast, scalable, highly available, and efficient storage and querying of profiling data.";
2024-03-19 13:26:06 +01:00
license = licenses.agpl3Only;
2022-12-08 13:42:14 +01:00
homepage = "https://grafana.com/oss/phlare";
maintainers = with maintainers; [ cathalmullan ];
};
}