Skip to content

Commit 7fd4e5f

Browse files
authored
parca-agent: init at 0.35.0 (#360132)
2 parents 60a1ffe + c0f61fe commit 7fd4e5f

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
buildGoModule,
3+
fetchFromGitHub,
4+
lib,
5+
stdenv,
6+
}:
7+
8+
buildGoModule rec {
9+
pname = "parca-agent";
10+
version = "0.35.0";
11+
12+
src = fetchFromGitHub {
13+
owner = "parca-dev";
14+
repo = "parca-agent";
15+
rev = "refs/tags/v${version}";
16+
hash = "sha256-5MoHX47uUtQgszNuu9ImLJPYnaN2NKZKOPa60PMHDL0=";
17+
fetchSubmodules = true;
18+
};
19+
20+
proxyVendor = true;
21+
vendorHash = "sha256-v2OnCuOI9inZ4WiU/3PbBwK6ZcvZX21MNsLhRWZ6sGY=";
22+
23+
buildInputs = [
24+
stdenv.cc.libc.static
25+
];
26+
27+
ldflags = [
28+
"-X=main.version=${version}"
29+
"-X=main.commit=${src.rev}"
30+
"-extldflags=-static"
31+
];
32+
33+
tags = [
34+
"osusergo"
35+
"netgo"
36+
];
37+
38+
meta = {
39+
description = "eBPF based, always-on profiling agent";
40+
homepage = "https://github.com/parca-dev/parca-agent";
41+
changelog = "https://github.com/parca-dev/parca-agent/releases/tag/v${version}";
42+
license = lib.licenses.asl20;
43+
maintainers = with lib.maintainers; [ jnsgruk ];
44+
platforms = lib.platforms.linux;
45+
mainProgram = "parca-agent";
46+
};
47+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
}:
6+
7+
buildGoModule rec {
8+
pname = "parca-debuginfo";
9+
version = "0.11.0";
10+
11+
src = fetchFromGitHub {
12+
owner = "parca-dev";
13+
repo = "parca-debuginfo";
14+
rev = "refs/tags/v${version}";
15+
hash = "sha256-gL1BgDtEf2Q7yxzpoiTJY+nsRlsWv3zYzLVvaVijMDM=";
16+
};
17+
18+
vendorHash = "sha256-xtKkKhKQmZcCIFTOH+oM5a2cPlAWlJPRNQWfrAl2948=";
19+
20+
ldflags = [
21+
"-X=main.version=${version}"
22+
"-X=main.commit=${src.rev}"
23+
];
24+
25+
meta = {
26+
description = "Command line utility for handling debuginfos";
27+
changelog = "https://github.com/parca-dev/parca-debuginfo/releases/tag/v${version}";
28+
homepage = "https://github.com/parca-dev/parca-debuginfo";
29+
license = lib.licenses.asl20;
30+
maintainers = with lib.maintainers; [ jnsgruk ];
31+
platforms = lib.platforms.unix;
32+
mainProgram = "parca-debuginfo";
33+
};
34+
}

0 commit comments

Comments
 (0)