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

31 lines
700 B
Nix
Raw Permalink Normal View History

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