about summary refs log tree commit diff
path: root/pkgs/development/libraries/rttr/default.nix
blob: de4d81918cd08a4c6bbb76b7ec3adc01d1b6a6e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchFromGitHub, cmake, ninja }:

stdenv.mkDerivation rec {
  pname = "rttr";
  version = "0.9.6";

  src = fetchFromGitHub {
    owner = "${pname}org";
    repo = pname;
    rev = "v${version}";
    sha256 = "1yxad8sj40wi75hny8w6imrsx8wjasjmsipnlq559n4b6kl84ijp";
  };

  nativeBuildInputs = [
    cmake
    ninja
  ];

  cmakeFlags = [
    "-DBUILD_EXAMPLES=OFF"
    "-DBUILD_UNIT_TESTS=OFF"
    "-DBUILD_PACKAGE=OFF"
  ];

  meta = with lib; {
    broken = stdenv.hostPlatform.isDarwin;
    description = "C++ Reflection Library";
    homepage = "https://www.rttr.org";
    license = licenses.mit;
    platforms = platforms.unix;
  };
}