summary refs log tree commit diff
path: root/pkgs/development/libraries/gbenchmark/default.nix
blob: dd16ebd5c8864ab98bc4949b77bc2861d77e08de (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
{ stdenv, callPackage, fetchFromGitHub, cmake }:

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

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

  buildInputs = [ cmake ];

  enableParallelBuilding = true;

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