1 { lib, stdenv, cmake, ninja, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 outputs = [ "out" "dev" ];
9 src = fetchFromGitHub {
12 rev = "release-${version}";
13 hash = "sha256-W+OxRTVtemt2esw4P7IyGWXOonUN5ZuscjvzqkYvZbM=";
17 ./fix-cmake-config-includedir.patch
20 nativeBuildInputs = [ cmake ninja ];
22 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
25 description = "Google's framework for writing C++ tests";
26 homepage = "https://github.com/google/googletest";
27 license = licenses.bsd3;
28 platforms = platforms.all;
29 maintainers = with maintainers; [ ivan-tkatchev ];