mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
71 lines
1.1 KiB
Nix
71 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
coeurl,
|
|
curl,
|
|
libevent,
|
|
nlohmann_json,
|
|
olm,
|
|
openssl,
|
|
re2,
|
|
spdlog,
|
|
gtest,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "mtxclient";
|
|
version = "0.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Nheko-Reborn";
|
|
repo = "mtxclient";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-Y0FMCq4crSbm0tJtYq04ZFwWw+vlfxXKXBo0XUgf7hw=";
|
|
};
|
|
|
|
patches = [
|
|
./remove-network-tests.patch
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_LIB_TESTS" finalAttrs.finalPackage.doCheck)
|
|
(lib.cmakeBool "BUILD_LIB_EXAMPLES" false)
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
coeurl
|
|
curl
|
|
libevent
|
|
nlohmann_json
|
|
olm
|
|
openssl
|
|
re2
|
|
spdlog
|
|
];
|
|
|
|
checkInputs = [ gtest ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Client API library for the Matrix protocol";
|
|
homepage = "https://github.com/Nheko-Reborn/mtxclient";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
fpletz
|
|
pstn
|
|
rebmit
|
|
rnhmjoj
|
|
];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|