Merge pull request #1202 from Zoomulator/master

gtest: New package, the google c++ testing framework.
This commit is contained in:
Peter Simons 2013-11-11 13:15:47 -08:00
commit 393689dcea
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ stdenv, fetchurl, unzip, cmake}:
stdenv.mkDerivation rec {
version = "1.7.0";
name = "gtest-${version}";
src = fetchurl {
url = "https://googletest.googlecode.com/files/${name}.zip";
sha256="03fnw3bizw9bcx7l5qy1vz7185g33d5pxqcb6aqxwlrzv26s2z14";
};
buildInputs = [ unzip cmake ];
configurePhase = ''
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=$out
'';
installPhase = ''
mkdir -p $out/lib
cp -v libgtest.a libgtest_main.a $out/lib
cp -v -r ../include $out
'';
meta = {
description = "Google test: Google's framework for writing C++ tests.";
homepage = https://code.google.com/p/googletest/;
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.zoomulator ];
};
}

View File

@ -1043,6 +1043,8 @@ let
gt5 = callPackage ../tools/system/gt5 { }; gt5 = callPackage ../tools/system/gt5 { };
gtest = callPackage ../development/libraries/gtest {};
gtkdatabox = callPackage ../development/libraries/gtkdatabox {}; gtkdatabox = callPackage ../development/libraries/gtkdatabox {};
gtkgnutella = callPackage ../tools/networking/p2p/gtk-gnutella { }; gtkgnutella = callPackage ../tools/networking/p2p/gtk-gnutella { };