Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / ticpp / default.nix
blob20de3d7f2b8925010498f39c60dd630b58af890a
1 { lib, stdenv
2 , fetchFromGitHub
3 , cmake
4 }:
6 stdenv.mkDerivation {
7   pname = "ticpp";
8   version = "unstable-2019-01-09";
10   src = fetchFromGitHub {
11     owner = "wxFormBuilder";
12     repo = "ticpp";
13     rev = "eb79120ea16b847ce9f483a298a394050f463d6b";
14     sha256 = "0xk4cy0xbkr6326cqd1vd6b2x0rfsx4iz2sq8f5jz3yl3slxgjm2";
15   };
17   nativeBuildInputs = [ cmake ];
19   cmakeFlags = [ "-DBUILD_TICPP_DLL=1" ];
21   installPhase = ''
22     cd ..
23     mkdir -p $out/lib
24     install build/*.{a,so} $out/lib
25     mkdir -p $out/include
26     install *.h $out/include
27   '';
29   meta = {
30     description = "Interface to TinyXML";
31     license = lib.licenses.mit;
32     homepage = "https://github.com/wxFormBuilder/ticpp";
33   };