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

33 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, boost, catch2, metal }:
2015-05-11 19:24:49 +00:00
stdenv.mkDerivation rec {
2019-08-05 11:43:10 +00:00
pname = "fcppt";
2020-04-10 06:19:41 +00:00
version = "3.5.0";
2015-05-11 19:24:49 +00:00
2017-03-12 19:53:50 +00:00
src = fetchFromGitHub {
owner = "freundlich";
repo = "fcppt";
rev = version;
2020-04-10 06:19:41 +00:00
sha256 = "045cmn4sym6ria96l4fsc1vrs8l4xrl1gzkmja82f4ddj8qkji2f";
2015-05-11 19:24:49 +00:00
};
2017-03-12 19:53:50 +00:00
nativeBuildInputs = [ cmake ];
2020-04-10 06:19:41 +00:00
buildInputs = [ boost catch2 metal ];
2015-05-11 19:24:49 +00:00
2020-04-10 06:19:41 +00:00
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=false" "-DENABLE_BOOST=true" "-DENABLE_EXAMPLES=true" "-DENABLE_CATCH=true" "-DENABLE_TEST=true" ];
2015-05-11 19:24:49 +00:00
meta = with lib; {
2015-05-11 19:24:49 +00:00
description = "Freundlich's C++ toolkit";
longDescription = ''
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 19:24:49 +00:00
'';
2020-04-10 06:19:41 +00: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 19:24:49 +00:00
};
}