diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/mqtt_cpp')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/mqtt_cpp/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/mqtt_cpp/default.nix b/nixpkgs/pkgs/development/libraries/mqtt_cpp/default.nix new file mode 100644 index 000000000000..fca89f8d0f68 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/mqtt_cpp/default.nix @@ -0,0 +1,30 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + boost, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "mqtt_cpp"; + version = "13.2.1"; + + src = fetchFromGitHub { + owner = "redboltz"; + repo = "mqtt_cpp"; + rev = "v${finalAttrs.version}"; + hash = "sha256-E5dMZ0uJ1AOwiGTxD4qhbO72blplmXHh1gTYGE34H+0="; + }; + + nativeBuildInputs = [cmake]; + + buildInputs = [boost]; + + meta = with lib; { + description = "MQTT client/server for C++14 based on Boost.Asio"; + homepage = "https://github.com/redboltz/mqtt_cpp"; + license = licenses.boost; + maintainers = with maintainers; [spalf]; + platforms = platforms.unix; + }; +}) |