mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
734 B
Nix
32 lines
734 B
Nix
{ stdenv, fetchFromGitHub, cmake, gtest }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gbenchmark";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "benchmark";
|
|
rev = "v${version}";
|
|
sha256 = "0r9dbg4cbk47gwmayys31a83m3y67k0kh1f6pl8i869rbd609ndh";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|