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