2019-02-13 20:39:34 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, brigand, catch2 }:
|
2015-05-11 20:24:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-12 19:53:50 +00:00
|
|
|
name = "fcppt-${version}";
|
2019-02-13 20:39:34 +00:00
|
|
|
version = "3.0.0";
|
2015-05-11 20:24:49 +01:00
|
|
|
|
2017-03-12 19:53:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "freundlich";
|
|
|
|
repo = "fcppt";
|
|
|
|
rev = version;
|
2019-02-13 20:39:34 +00:00
|
|
|
sha256 = "0l78fjhy9nl3afrf0da9da4wzp1sx3kcyc2j6b71i60kvk44v4in";
|
2015-05-11 20:24:49 +01:00
|
|
|
};
|
|
|
|
|
2017-03-12 19:53:50 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-02-13 20:39:34 +00:00
|
|
|
buildInputs = [ boost catch2 ];
|
2015-05-11 20:24:49 +01:00
|
|
|
|
2019-02-13 20:39:34 +00:00
|
|
|
cmakeFlags = [ "-DENABLE_EXAMPLES=false" "-DENABLE_CATCH=true" "-DENABLE_TEST=true" "-DBrigand_INCLUDE_DIR=${brigand}/include" ];
|
2015-05-11 20:24:49 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-03-12 19:53:50 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-11 20:24:49 +01:00
|
|
|
description = "Freundlich's C++ toolkit";
|
|
|
|
longDescription = ''
|
2016-08-02 17:38:04 +01:00
|
|
|
Freundlich's C++ Toolkit (fcppt) is a collection of libraries focusing on
|
|
|
|
improving general C++ code by providing better types, a strong focus on
|
|
|
|
C++11 (non-conforming compilers are mostly not supported) and functional
|
|
|
|
programming (which is both efficient and syntactically affordable in
|
|
|
|
C++11).
|
2015-05-11 20:24:49 +01:00
|
|
|
'';
|
2018-05-01 04:03:23 +01:00
|
|
|
homepage = https://fcppt.org;
|
2017-03-12 19:53:50 +00:00
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ pmiddend ];
|
|
|
|
platforms = platforms.linux;
|
2015-05-11 20:24:49 +01:00
|
|
|
};
|
|
|
|
}
|