parca-agent: init at 0.35.0 (#360132)

This commit is contained in:
Pol Dellaiera 2024-11-30 17:19:47 +01:00 committed by GitHub
commit 7fd4e5f7c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{
buildGoModule,
fetchFromGitHub,
lib,
stdenv,
}:
buildGoModule rec {
pname = "parca-agent";
version = "0.35.0";
src = fetchFromGitHub {
owner = "parca-dev";
repo = "parca-agent";
rev = "refs/tags/v${version}";
hash = "sha256-5MoHX47uUtQgszNuu9ImLJPYnaN2NKZKOPa60PMHDL0=";
fetchSubmodules = true;
};
proxyVendor = true;
vendorHash = "sha256-v2OnCuOI9inZ4WiU/3PbBwK6ZcvZX21MNsLhRWZ6sGY=";
buildInputs = [
stdenv.cc.libc.static
];
ldflags = [
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
"-extldflags=-static"
];
tags = [
"osusergo"
"netgo"
];
meta = {
description = "eBPF based, always-on profiling agent";
homepage = "https://github.com/parca-dev/parca-agent";
changelog = "https://github.com/parca-dev/parca-agent/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jnsgruk ];
platforms = lib.platforms.linux;
mainProgram = "parca-agent";
};
}

View File

@ -0,0 +1,34 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "parca-debuginfo";
version = "0.11.0";
src = fetchFromGitHub {
owner = "parca-dev";
repo = "parca-debuginfo";
rev = "refs/tags/v${version}";
hash = "sha256-gL1BgDtEf2Q7yxzpoiTJY+nsRlsWv3zYzLVvaVijMDM=";
};
vendorHash = "sha256-xtKkKhKQmZcCIFTOH+oM5a2cPlAWlJPRNQWfrAl2948=";
ldflags = [
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
];
meta = {
description = "Command line utility for handling debuginfos";
changelog = "https://github.com/parca-dev/parca-debuginfo/releases/tag/v${version}";
homepage = "https://github.com/parca-dev/parca-debuginfo";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jnsgruk ];
platforms = lib.platforms.unix;
mainProgram = "parca-debuginfo";
};
}