2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, gtest }:
|
2016-12-16 14:26:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gbenchmark";
|
2021-09-14 08:43:23 +01:00
|
|
|
version = "1.6.0";
|
2016-12-16 14:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "benchmark";
|
|
|
|
rev = "v${version}";
|
2021-09-14 08:43:23 +01:00
|
|
|
sha256 = "sha256-EAJk3JhLdkuGKRMtspTLejck8doWPd7Z0Lv/Mvf3KFY=";
|
2016-12-16 14:26:21 +00:00
|
|
|
};
|
|
|
|
|
2019-03-08 21:19:02 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2019-06-03 11:35:15 +01:00
|
|
|
postPatch = ''
|
|
|
|
cp -r ${gtest.src} googletest
|
|
|
|
chmod -R u+w googletest
|
|
|
|
'';
|
2016-12-16 14:26:21 +00:00
|
|
|
|
2019-06-03 11:35:15 +01:00
|
|
|
doCheck = true;
|
2016-12-16 14:26:21 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-12-16 14:26:21 +00:00
|
|
|
description = "A microbenchmark support library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/google/benchmark";
|
2016-12-16 14:26:21 +00:00
|
|
|
license = licenses.asl20;
|
2018-08-31 14:16:59 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-12-16 14:26:21 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|