17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
22 owner = "Nheko-Reborn";
25 hash = "sha256-r+bD2L5+3AwkdYa3FwsM+yf7V5w+6ZJC92CMdVeYLJQ=";
29 # See https://github.com/gabime/spdlog/issues/1897
30 sed -i '1a add_compile_definitions(SPDLOG_FMT_EXTERNAL)' CMakeLists.txt
34 # Network requiring tests can't be disabled individually:
35 # https://github.com/Nheko-Reborn/mtxclient/issues/22
36 "-DBUILD_LIB_TESTS=OFF"
37 "-DBUILD_LIB_EXAMPLES=OFF"
57 description = "Client API library for the Matrix protocol.";
58 homepage = "https://github.com/Nheko-Reborn/mtxclient";
59 license = licenses.mit;
60 maintainers = with maintainers; [ fpletz pstn ];
61 platforms = platforms.all;
62 # Should be fixable if a higher clang version is used, see:
63 # https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
64 broken = stdenv.hostPlatform.isDarwin;