Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 30 lines 639 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 boost, 7}: 8stdenv.mkDerivation (finalAttrs: { 9 pname = "mqtt_cpp"; 10 version = "13.2.1"; 11 12 src = fetchFromGitHub { 13 owner = "redboltz"; 14 repo = "mqtt_cpp"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-E5dMZ0uJ1AOwiGTxD4qhbO72blplmXHh1gTYGE34H+0="; 17 }; 18 19 nativeBuildInputs = [cmake]; 20 21 buildInputs = [boost]; 22 23 meta = with lib; { 24 description = "MQTT client/server for C++14 based on Boost.Asio"; 25 homepage = "https://github.com/redboltz/mqtt_cpp"; 26 license = licenses.boost; 27 maintainers = with maintainers; [spalf]; 28 platforms = platforms.unix; 29 }; 30})