diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-01-15 10:30:44 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-01-15 10:30:44 +0000 |
commit | e0794be8a0d11e90461e5a9c85012a36b93ec976 (patch) | |
tree | efd9cbc55ea3322867bf601c4d536758a3dd5fcc /nixpkgs/pkgs/development/libraries/cxxtest | |
parent | 3538874082ded7647b1ccec0343c7c1e882cfef3 (diff) | |
parent | 1a57d96edd156958b12782e8c8b6a374142a7248 (diff) | |
download | nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.gz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.bz2 nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.lz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.xz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.zst nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.zip |
Merge commit '1a57d96edd156958b12782e8c8b6a374142a7248'
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/cxxtest')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/cxxtest/default.nix | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/libraries/cxxtest/default.nix b/nixpkgs/pkgs/development/libraries/cxxtest/default.nix index 00629339e086..e1898044efaf 100644 --- a/nixpkgs/pkgs/development/libraries/cxxtest/default.nix +++ b/nixpkgs/pkgs/development/libraries/cxxtest/default.nix @@ -1,10 +1,8 @@ -{ stdenv, fetchFromGitHub, python2Packages}: +{ stdenv, buildPythonApplication, fetchFromGitHub }: -let +buildPythonApplication rec { pname = "cxxtest"; version = "4.4"; -in python2Packages.buildPythonApplication { - name = "${pname}-${version}"; src = fetchFromGitHub { owner = "CxxTest"; @@ -13,16 +11,26 @@ in python2Packages.buildPythonApplication { sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17"; }; - setSourceRoot = '' - sourceRoot=$(echo */python) + 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" ''; + dontWrapPythonPrograms = true; + meta = with stdenv.lib; { homepage = "http://cxxtest.com"; description = "Unit testing framework for C++"; - platforms = platforms.unix ; + platforms = platforms.unix; license = licenses.lgpl3; maintainers = [ maintainers.juliendehos ]; }; } - |