nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 25 lines 633 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake, openssl, paho-mqtt-c }: 2 3stdenv.mkDerivation rec { 4 pname = "paho.mqtt.cpp"; 5 version = "1.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "eclipse"; 9 repo = "paho.mqtt.cpp"; 10 rev = "v${version}"; 11 hash = "sha256-tcq0a4X5dKE4rnczRMAVe3Wt43YzUKbxsv9Sk+q+IB8="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 buildInputs = [ openssl paho-mqtt-c ]; 17 18 meta = with lib; { 19 description = "Eclipse Paho MQTT C++ Client Library"; 20 homepage = "https://www.eclipse.org/paho/"; 21 license = licenses.epl10; 22 maintainers = with maintainers; [ sikmir ]; 23 platforms = platforms.unix; 24 }; 25}