Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation {
9 pname = "ticpp";
10 version = "0-unstable-2019-01-09";
11
12 src = fetchFromGitHub {
13 owner = "wxFormBuilder";
14 repo = "ticpp";
15 rev = "eb79120ea16b847ce9f483a298a394050f463d6b";
16 sha256 = "0xk4cy0xbkr6326cqd1vd6b2x0rfsx4iz2sq8f5jz3yl3slxgjm2";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 cmakeFlags = [ "-DBUILD_TICPP_DLL=1" ];
22
23 installPhase = ''
24 cd ..
25 mkdir -p $out/lib
26 install build/*.{a,so} $out/lib
27 mkdir -p $out/include
28 install *.h $out/include
29 '';
30
31 meta = {
32 description = "Interface to TinyXML";
33 license = lib.licenses.mit;
34 homepage = "https://github.com/wxFormBuilder/ticpp";
35 };
36
37}