nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 boost,
7 catch2,
8}:
9stdenv.mkDerivation rec {
10 pname = "fcppt";
11 version = "4.2.1";
12
13 src = fetchFromGitHub {
14 owner = "freundlich";
15 repo = "fcppt";
16 rev = version;
17 sha256 = "1pcmi2ck12nanw1rnwf8lmyx85iq20897k6daxx3hw5f23j1kxv6";
18 };
19
20 nativeBuildInputs = [ cmake ];
21 buildInputs = [
22 boost
23 catch2
24 ];
25
26 cmakeFlags = [
27 "-DENABLE_BOOST=true"
28 "-DENABLE_EXAMPLES=true"
29 "-DENABLE_CATCH=true"
30 "-DENABLE_TEST=true"
31 ];
32
33 meta = with lib; {
34 description = "Freundlich's C++ toolkit";
35 longDescription = ''
36 Freundlich's C++ Toolkit (fcppt) is a collection of libraries focusing on
37 improving general C++ code by providing better types, a strong focus on
38 C++11 (non-conforming compilers are mostly not supported) and functional
39 programming (which is both efficient and syntactically affordable in
40 C++11).
41 '';
42 homepage = "https://fcppt.org";
43 license = licenses.boost;
44 maintainers = with maintainers; [ pmiddend ];
45 platforms = [
46 "x86_64-linux"
47 "x86_64-windows"
48 ];
49 };
50}