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