Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 923 B view raw
1{ stdenv, fetchFromGitHub, cmake, boost, openssl }: 2 3stdenv.mkDerivation rec { 4 pname = "cpp-netlib"; 5 version = "0.13.0-final"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "${pname}-${version}"; 11 sha256 = "18782sz7aggsl66b4mmi1i0ijwa76iww337fi9sygnplz2hs03a3"; 12 fetchSubmodules = true; 13 }; 14 15 buildInputs = [ cmake boost openssl ]; 16 17 cmakeFlags = [ 18 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON" 19 ]; 20 21 enableParallelBuilding = true; 22 23 # The test driver binary lacks an RPath to the library's libs 24 preCheck = '' 25 export LD_LIBRARY_PATH=$PWD/libs/network/src 26 ''; 27 28 # Most tests make network GET requests to various websites 29 doCheck = false; 30 31 meta = with stdenv.lib; { 32 description = "Collection of open-source libraries for high level network programming"; 33 homepage = https://cpp-netlib.org; 34 license = licenses.boost; 35 platforms = platforms.all; 36 }; 37}