Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 27 lines 615 B view raw
1{ stdenv, cmake 2, version, src, patches ? [ ] 3, ... 4}: 5 6stdenv.mkDerivation rec { 7 name = "msgpack-${version}"; 8 9 inherit src patches; 10 11 nativeBuildInputs = [ cmake ]; 12 13 enableParallelBuilding = true; 14 15 cmakeFlags = [] 16 ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) 17 "-DMSGPACK_BUILD_EXAMPLES=OFF" 18 ; 19 20 meta = with stdenv.lib; { 21 description = "MessagePack implementation for C and C++"; 22 homepage = https://msgpack.org; 23 license = licenses.asl20; 24 maintainers = with maintainers; [ redbaron ]; 25 platforms = platforms.all; 26 }; 27}