Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtest: New package, the google c++ testing framework. #1202

Merged
merged 1 commit into from
Nov 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions pkgs/development/libraries/gtest/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,8 @@ let

gt5 = callPackage ../tools/system/gt5 { };

gtest = callPackage ../development/libraries/gtest {};

gtkdatabox = callPackage ../development/libraries/gtkdatabox {};

gtkgnutella = callPackage ../tools/networking/p2p/gtk-gnutella { };
Expand Down