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

32 lines
744 B
Nix
Raw Normal View History

2019-03-08 13:19:02 -08:00
{ stdenv, fetchFromGitHub, cmake, gtest }:
2016-12-16 06:26:21 -08:00
stdenv.mkDerivation rec {
name = "gbenchmark-${version}";
2019-06-03 03:35:15 -07:00
version = "1.5.0";
2016-12-16 06:26:21 -08:00
src = fetchFromGitHub {
owner = "google";
repo = "benchmark";
rev = "v${version}";
2019-06-03 03:35:15 -07:00
sha256 = "0r9dbg4cbk47gwmayys31a83m3y67k0kh1f6pl8i869rbd609ndh";
2016-12-16 06:26:21 -08:00
};
2019-03-08 13:19:02 -08:00
nativeBuildInputs = [ cmake ];
2019-06-03 03:35:15 -07:00
postPatch = ''
cp -r ${gtest.src} googletest
chmod -R u+w googletest
'';
2016-12-16 06:26:21 -08:00
enableParallelBuilding = true;
2019-06-03 03:35:15 -07:00
doCheck = true;
2016-12-16 06:26:21 -08:00
meta = with stdenv.lib; {
description = "A microbenchmark support library";
homepage = https://github.com/google/benchmark;
2016-12-16 06:26:21 -08:00
license = licenses.asl20;
2018-08-31 06:16:59 -07:00
platforms = platforms.linux ++ platforms.darwin;
2016-12-16 06:26:21 -08:00
maintainers = with maintainers; [ abbradar ];
};
}