2016-12-16 15:26:21 +01:00
|
|
|
{ stdenv, callPackage, fetchFromGitHub, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gbenchmark-${version}";
|
2017-07-27 14:52:47 +02:00
|
|
|
version = "1.2.0";
|
2016-12-16 15:26:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "benchmark";
|
|
|
|
rev = "v${version}";
|
2017-07-27 14:52:47 +02:00
|
|
|
sha256 = "1gld3zdxgc0c0466qvnsi70h2ksx8qprjrx008rypdhzp6660m48";
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|