summary refs log tree commit diff
path: root/pkgs/development/libraries/ticpp/default.nix
blob: e46bf2418bcf97847bcdd2ba4b49a2d6dbb40eaa (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
33
34
35
{ stdenv
, fetchFromGitHub
, cmake
}:

stdenv.mkDerivation {
  pname = "ticpp";
  version = "unstable-2019-01-09";

  src = fetchFromGitHub {
    owner = "wxFormBuilder";
    repo = "ticpp";
    rev = "eb79120ea16b847ce9f483a298a394050f463d6b";
    sha256 = "sha256:0xk4cy0xbkr6326cqd1vd6b2x0rfsx4iz2sq8f5jz3yl3slxgjm2";
  };

  nativeBuildInputs = [ cmake ];

  cmakeFlags = [ "-DBUILD_TICPP_DLL=1" ];

  installPhase = ''
    cd ..
    mkdir -p $out/lib
    install build/*.{a,so} $out/lib
    mkdir -p $out/include
    install *.h $out/include
  '';

  meta = {
    description = "Interface to TinyXML";
    license = stdenv.lib.licenses.mit;
    homepage = https://github.com/wxFormBuilder/ticpp;
  };

}