about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/gbenchmark/default.nix
blob: dc5c2024c02a55fa7b40e0361669bdbae4c3d966 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, cmake, gtest }:

stdenv.mkDerivation rec {
  name = "gbenchmark-${version}";
  version = "1.4.1";

  src = fetchFromGitHub {
    owner = "google";
    repo = "benchmark";
    rev = "v${version}";
    sha256 = "0l1f6azka85fkb8kdmh4qmmpxhsv7lr7wvll6sld31mfz0cai1kd";
  };

  nativeBuildInputs = [ cmake ];

  buildInputs = [ gtest ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "A microbenchmark support library";
    homepage = https://github.com/google/benchmark;
    license = licenses.asl20;
    platforms = platforms.linux ++ platforms.darwin;
    maintainers = with maintainers; [ abbradar ];
  };
}