1{ stdenv, fetchurl, unzip }:
2
3stdenv.mkDerivation rec {
4 pname = "rapidxml";
5 version = "1.13";
6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "mirror://sourceforge/${pname}/${name}.zip";
10 sha256 = "0w9mbdgshr6sh6a5jr10lkdycjyvapbj7wxwz8hbp0a96y3biw63";
11 };
12
13 nativeBuildInputs = [ unzip ];
14
15 installPhase = ''
16 mkdir -p $out/include/${pname}
17 cp * $out/include/${pname}
18 '';
19
20 meta = with stdenv.lib; {
21 description = "Fast XML DOM-style parser in C++";
22 homepage = "http://rapidxml.sourceforge.net/";
23 license = licenses.boost;
24 platforms = platforms.unix;
25 maintainers = with maintainers; [ cpages ];
26 };
27}