Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv 2, fetchFromGitHub 3, cmake 4}: 5 6stdenv.mkDerivation { 7 pname = "ticpp"; 8 version = "unstable-2019-01-09"; 9 10 src = fetchFromGitHub { 11 owner = "wxFormBuilder"; 12 repo = "ticpp"; 13 rev = "eb79120ea16b847ce9f483a298a394050f463d6b"; 14 sha256 = "0xk4cy0xbkr6326cqd1vd6b2x0rfsx4iz2sq8f5jz3yl3slxgjm2"; 15 }; 16 17 nativeBuildInputs = [ cmake ]; 18 19 cmakeFlags = [ "-DBUILD_TICPP_DLL=1" ]; 20 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 ''; 28 29 meta = { 30 description = "Interface to TinyXML"; 31 license = lib.licenses.mit; 32 homepage = "https://github.com/wxFormBuilder/ticpp"; 33 }; 34 35}