From 9887b5f82993f329f576ce89edb7690a85a09759 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 12 Nov 2022 06:21:33 +0000 Subject: [PATCH 1/2] gbenchmark: 1.6.1 -> 1.7.1 --- pkgs/development/libraries/gbenchmark/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gbenchmark/default.nix b/pkgs/development/libraries/gbenchmark/default.nix index ff7aa2fbdda8..80238d3d3bfb 100644 --- a/pkgs/development/libraries/gbenchmark/default.nix +++ b/pkgs/development/libraries/gbenchmark/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "gbenchmark"; - version = "1.6.1"; + version = "1.7.1"; src = fetchFromGitHub { owner = "google"; repo = "benchmark"; rev = "v${version}"; - sha256 = "sha256-yUiFxi80FWBmTZgqmqTMf9oqcBeg3o4I4vKd4djyRWY="; + sha256 = "sha256-gg3g/0Ki29FnGqKv9lDTs5oA9NjH23qQ+hTdVtSU+zo="; }; nativeBuildInputs = [ cmake ]; From 94ddacc61ccdb8d22c8c7522a311003c76d0ac59 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 12 Nov 2022 06:22:00 +0000 Subject: [PATCH 2/2] gbenchmark: add prometheus-cpp as reverse dependency to passthru.tests --- pkgs/development/libraries/gbenchmark/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gbenchmark/default.nix b/pkgs/development/libraries/gbenchmark/default.nix index 80238d3d3bfb..4622c6bf602b 100644 --- a/pkgs/development/libraries/gbenchmark/default.nix +++ b/pkgs/development/libraries/gbenchmark/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, fetchFromGitHub, cmake, gtest }: +{ lib +, stdenv +, fetchFromGitHub +, cmake +, gtest +, prometheus-cpp +}: stdenv.mkDerivation rec { pname = "gbenchmark"; @@ -25,6 +31,10 @@ stdenv.mkDerivation rec { doCheck = true; + passthru.tests = { + inherit prometheus-cpp; + }; + meta = with lib; { description = "A microbenchmark support library"; homepage = "https://github.com/google/benchmark";