pyroscope: 1.20.3 -> 2.1.0
https://github.com/grafana/pyroscope/releases/tag/v2.1.0 Assisted-by: pi coding agent / Mika (OpenAI GPT-5.5)
This commit is contained in:
@@ -1,25 +1,23 @@
|
||||
{
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
installShellFiles,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "pyroscope";
|
||||
version = "1.20.3";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "grafana";
|
||||
repo = "pyroscope";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-IZA6xaZgjcS/3QBsz2L12QEBeCzRFAv+Qpag+O4aOVI=";
|
||||
hash = "sha256-7bY3qmN05m/OxFyDxdwlxsvYrwzhdbkX0XhGqOzCZSA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-hy/MM/VOy182MM+Fd+PDVivHwduG2zkBUOWqOnFtWRI=";
|
||||
vendorHash = "sha256-UGWfrnpTgzR09T5jDL24d/Bs8+HBWi4g1YzZyy7ULWY=";
|
||||
proxyVendor = true;
|
||||
|
||||
subPackages = [
|
||||
@@ -28,10 +26,10 @@ buildGoModule (finalAttrs: {
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-X=github.com/grafana/pyroscope/pkg/util/build.Branch=${finalAttrs.src.rev}"
|
||||
"-X=github.com/grafana/pyroscope/pkg/util/build.Version=${finalAttrs.version}"
|
||||
"-X=github.com/grafana/pyroscope/pkg/util/build.Revision=${finalAttrs.src.rev}"
|
||||
"-X=github.com/grafana/pyroscope/pkg/util/build.BuildDate=1970-01-01T00:00:00Z"
|
||||
"-X=github.com/grafana/pyroscope/v2/pkg/util/build.Branch=${finalAttrs.src.rev}"
|
||||
"-X=github.com/grafana/pyroscope/v2/pkg/util/build.Version=${finalAttrs.version}"
|
||||
"-X=github.com/grafana/pyroscope/v2/pkg/util/build.Revision=${finalAttrs.src.rev}"
|
||||
"-X=github.com/grafana/pyroscope/v2/pkg/util/build.BuildDate=1970-01-01T00:00:00Z"
|
||||
];
|
||||
|
||||
# We're overriding the version in 'ldFlags', so we should check that the
|
||||
@@ -40,14 +38,6 @@ buildGoModule (finalAttrs: {
|
||||
doInstallCheck = true;
|
||||
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd pyroscope \
|
||||
--bash <($out/bin/pyroscope completion bash) \
|
||||
--fish <($out/bin/pyroscope completion fish) \
|
||||
--zsh <($out/bin/pyroscope completion zsh)
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user