mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
31 lines
700 B
Nix
31 lines
700 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, gtest }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gbenchmark";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "benchmark";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-EAJk3JhLdkuGKRMtspTLejck8doWPd7Z0Lv/Mvf3KFY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
postPatch = ''
|
|
cp -r ${gtest.src} googletest
|
|
chmod -R u+w googletest
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "A microbenchmark support library";
|
|
homepage = "https://github.com/google/benchmark";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|