From b72dfa7b7bcbdad418f8bb3d1310b2edf799eeb3 Mon Sep 17 00:00:00 2001 From: Julien Dehos Date: Fri, 29 Jul 2016 17:07:10 +0200 Subject: [PATCH] cxxtest: init at 4.4 --- .../development/libraries/cxxtest/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/libraries/cxxtest/default.nix diff --git a/pkgs/development/libraries/cxxtest/default.nix b/pkgs/development/libraries/cxxtest/default.nix new file mode 100644 index 000000000000..ebf21c13010e --- /dev/null +++ b/pkgs/development/libraries/cxxtest/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, pythonPackages}: + +stdenv.mkDerivation rec { + version = "4.4"; + name = "cxxtest"; + + src = fetchFromGitHub { + owner = "CxxTest"; + repo = name; + rev = version; + sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17"; + }; + + buildInputs = with pythonPackages; [ python wrapPython ]; + + installPhase = '' + cd python + python setup.py install --prefix=$out + cd .. + + mkdir -p $out/include + cp -R cxxtest $out/include/ + + wrapPythonProgramsIn $out/bin "$out $pythonPath" + ''; + + meta = with stdenv.lib; { + homepage = "http://cxxtest.com"; + description = "Unit testing framework for C++"; + platforms = platforms.unix ; + license = licenses.lgpl3; + maintainers = [ maintainers.juliendehos ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0102a4d97ec8..8c90e9e5ae27 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7075,6 +7075,8 @@ in cxx-prettyprint = callPackage ../development/libraries/cxx-prettyprint { }; + cxxtest = callPackage ../development/libraries/cxxtest { }; + cyrus_sasl = callPackage ../development/libraries/cyrus-sasl { kerberos = if stdenv.isFreeBSD then libheimdal else kerberos; };