Skip to content

Commit

Permalink
mtxclient: init at 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Sep 9, 2018
1 parent d18aace commit 8473168
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/development/libraries/mtxclient/default.nix
@@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, boost, openssl, zlib, libsodium, olm, gtest, spdlog, nlohmann_json }:

stdenv.mkDerivation rec {
name = "mtxclient-${version}";
version = "0.1.0";

src = fetchFromGitHub {
owner = "mujx";
repo = "mtxclient";
rev = "v${version}";
sha256 = "0i58y45diysayjzy5ick15356972z67dfxm0w41ay88nm42x1imp";
};

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -11244,6 +11244,8 @@ with pkgs;

mtpfs = callPackage ../tools/filesystems/mtpfs { };

mtxclient = callPackage ../development/libraries/mtxclient { };

mu = callPackage ../tools/networking/mu {
texinfo = texinfo4;
};
Expand Down

0 comments on commit 8473168

Please sign in to comment.