Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
stdenv,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "parca-agent";
|
|
version = "0.42.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "parca-dev";
|
|
repo = "parca-agent";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Q/F7BzkeoZQfGROHVYF9n3SGidy4EhCLSRz2xa8eSKY=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
proxyVendor = true;
|
|
vendorHash = "sha256-nKLHe0MGdV05oSdDaaGN9elsAAzG6mfoT/ZZt+LcbI4=";
|
|
|
|
buildInputs = [
|
|
stdenv.cc.libc.static
|
|
];
|
|
|
|
ldflags = [
|
|
"-X=main.version=${finalAttrs.version}"
|
|
"-X=main.commit=${finalAttrs.src.rev}"
|
|
"-extldflags=-static"
|
|
];
|
|
|
|
tags = [
|
|
"osusergo"
|
|
"netgo"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
brancz
|
|
metalmatze
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "parca-agent";
|
|
};
|
|
})
|