From 97057b19d496529c4982a23abe9898cf3a5abe6b Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Mon, 21 Oct 2024 17:34:45 -0700 Subject: [PATCH] perf_data_converter: 0-unstable-2024-07-25 -> 0-unstable-2024-10-14 --- .../pe/perf_data_converter/package.nix | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/pe/perf_data_converter/package.nix b/pkgs/by-name/pe/perf_data_converter/package.nix index 827be3d7d242c..be0943a2f1c1f 100644 --- a/pkgs/by-name/pe/perf_data_converter/package.nix +++ b/pkgs/by-name/pe/perf_data_converter/package.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildBazelPackage, fetchFromGitHub, bazel_6, @@ -8,25 +9,39 @@ libcap, }: +let + system = stdenv.hostPlatform.system; + registry = fetchFromGitHub { + owner = "bazelbuild"; + repo = "bazel-central-registry"; + rev = "ef34e6bfad5a6ab54080ddcc83a4d65849855e3a"; + hash = "sha256-PhacBegQDwWZqZeoZjoLR4akhVV3QrSPr1KflCuied0="; + }; +in buildBazelPackage rec { pname = "perf_data_converter"; - version = "0-unstable-2024-07-25"; + version = "0-unstable-2024-10-14"; src = fetchFromGitHub { owner = "google"; repo = "perf_data_converter"; - rev = "571052793d8c49fd3e93121af548cc8ebd8920f0"; - hash = "sha256-yoWOCSYAfnDVDQ6uwZ30P4p3pgvfmjVQiN9gu5auusY="; + rev = "f76cd4dd1e85bb54d60ea3fe69f92168fdf94edb"; + hash = "sha256-AScXL74K0Eiajdib56+7ay3K/MMWbmeUWkRWMaEJRC8="; }; bazel = bazel_6; bazelFlags = [ - "--java_runtime_version=local_jdk" - "--tool_java_runtime_version=local_jdk" + "--registry" + "file://${registry}" ]; fetchAttrs = { - hash = "sha256-Qm6Ng9cXvKx043P7qyNHyyMvdGK9aNarX1ZKeCp3mgY="; + hash = + { + aarch64-linux = "sha256-gSRSkLGZhHe8o3byZVFsUxXPM+xzetOPhfzkAVTGAUs="; + x86_64-linux = "sha256-ZYjFpdH0oYrJguw16DSJWiXjhfJusG+inShbx/BOrcY="; + } + .${system} or (throw "No hash for system: ${system}"); }; nativeBuildInputs = [ jdk ];