nixpkgs/pkgs/development/libraries/mtxclient/default.nix

32 lines
904 B
Nix
Raw Normal View History

2018-09-09 22:12:52 +02:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, boost, openssl, zlib, libsodium, olm, gtest, spdlog, nlohmann_json }:
stdenv.mkDerivation rec {
name = "mtxclient-${version}";
2018-09-25 21:41:13 +02:00
version = "0.2.0";
2018-09-09 22:12:52 +02:00
src = fetchFromGitHub {
owner = "mujx";
repo = "mtxclient";
rev = "v${version}";
2018-09-25 21:41:13 +02:00
sha256 = "19v1qa6mzvc65m7wy7x0g4i24bcg9xk31y1grwvd3zr0l4v6xcgs";
2018-09-09 22:12:52 +02:00
};
postPatch = ''
ln -s ${nlohmann_json}/include/nlohmann/json.hpp include/json.hpp
'';
cmakeFlags = [ "-DBUILD_LIB_TESTS=OFF" "-DBUILD_LIB_EXAMPLES=OFF" ];
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ boost openssl zlib libsodium olm ];
meta = with stdenv.lib; {
description = "Client API library for Matrix, built on top of Boost.Asio";
homepage = https://github.com/mujx/mtxclient;
license = licenses.mit;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.unix;
};
}