1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 15:47:28 +00:00
nixpkgs/pkgs/development/libraries/gtest/default.nix

35 lines
735 B
Nix
Raw Normal View History

{ stdenv, cmake, callPackage }:
let
source = callPackage ./source.nix { };
in
stdenv.mkDerivation rec {
name = "gtest-${source.version}";
src = source;
buildInputs = [ 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
cp -v -r ../src $out
'';
2014-09-18 08:48:31 +01:00
meta = with stdenv.lib; {
2014-11-11 13:20:43 +00:00
description = "Google's framework for writing C++ tests";
homepage = https://code.google.com/p/googletest/;
2014-09-18 08:48:31 +01:00
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ zoomulator ];
};
passthru = { inherit source; };
}