2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2016-12-16 15:26:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gbenchmark-${version}";
|
2018-02-25 18:03:51 +01:00
|
|
|
version = "1.3.0";
|
2016-12-16 15:26:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "benchmark";
|
|
|
|
rev = "v${version}";
|
2018-02-25 18:03:51 +01:00
|
|
|
sha256 = "1qx2dp7y0haj6wfbbfw8hx8sxb8ww0igdfrmmaaxfl0vhckylrxh";
|
2016-12-16 15:26:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A microbenchmark support library";
|
2017-08-01 22:03:30 +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 ];
|
|
|
|
};
|
|
|
|
}
|