nixpkgs-suyu/pkgs/development/libraries/gbenchmark/default.nix

28 lines
668 B
Nix
Raw Normal View History

2019-03-08 22:19:02 +01:00
{ stdenv, fetchFromGitHub, cmake, gtest }:
2016-12-16 15:26:21 +01:00
stdenv.mkDerivation rec {
name = "gbenchmark-${version}";
2019-03-08 22:19:02 +01:00
version = "1.4.1";
2016-12-16 15:26:21 +01:00
src = fetchFromGitHub {
owner = "google";
repo = "benchmark";
rev = "v${version}";
2019-03-08 22:19:02 +01:00
sha256 = "0l1f6azka85fkb8kdmh4qmmpxhsv7lr7wvll6sld31mfz0cai1kd";
2016-12-16 15:26:21 +01:00
};
2019-03-08 22:19:02 +01:00
nativeBuildInputs = [ cmake ];
buildInputs = [ gtest ];
2016-12-16 15:26:21 +01:00
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A microbenchmark support library";
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 ];
};
}