nixpkgs/pkgs/development/libraries/cxxtest/default.nix

37 lines
851 B
Nix
Raw Normal View History

{ lib, buildPythonApplication, fetchFromGitHub }:
2016-07-29 15:07:10 +00:00
buildPythonApplication rec {
2016-11-09 10:24:32 +00:00
pname = "cxxtest";
2016-07-29 15:07:10 +00:00
version = "4.4";
src = fetchFromGitHub {
owner = "CxxTest";
2016-11-09 10:24:32 +00:00
repo = pname;
2016-07-29 15:07:10 +00:00
rev = version;
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
};
sourceRoot = "source/python";
postCheck = ''
python scripts/cxxtestgen --error-printer -o build/GoodSuite.cpp ../test/GoodSuite.h
$CXX -I.. -o build/GoodSuite build/GoodSuite.cpp
build/GoodSuite
'';
postInstall = ''
mkdir -p "$out/include"
cp -r ../cxxtest "$out/include"
'';
2016-07-29 15:07:10 +00:00
dontWrapPythonPrograms = true;
meta = with lib; {
homepage = "http://cxxtest.com";
2016-07-29 15:07:10 +00:00
description = "Unit testing framework for C++";
platforms = platforms.unix;
2016-07-29 15:07:10 +00:00
license = licenses.lgpl3;
maintainers = [ maintainers.juliendehos ];
};
}