depot/third_party/nixpkgs/pkgs/development/libraries/gbenchmark/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

31 lines
736 B
Nix

{ stdenv, fetchFromGitHub, cmake, gtest }:
stdenv.mkDerivation rec {
pname = "gbenchmark";
version = "1.5.1";
src = fetchFromGitHub {
owner = "google";
repo = "benchmark";
rev = "v${version}";
sha256 = "16xlk8h4mfszl4rig22fgpj9kw312az22981ph6pmkf35xsvvv66";
};
nativeBuildInputs = [ cmake ];
postPatch = ''
cp -r ${gtest.src} googletest
chmod -R u+w googletest
'';
enableParallelBuilding = true;
doCheck = 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 ];
};
}