2020-04-30 09:08:47 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2020-04-25 01:05:38 +02:00
|
|
|
, fetchpatch
|
2020-04-30 09:08:47 +02:00
|
|
|
, cmake
|
|
|
|
, cmark
|
|
|
|
, lmdb
|
2020-04-17 12:19:45 +02:00
|
|
|
, lmdbxx
|
|
|
|
, tweeny
|
2020-04-30 09:08:47 +02:00
|
|
|
, mkDerivation
|
|
|
|
, qtbase
|
|
|
|
, qtmacextras
|
|
|
|
, qtmultimedia
|
|
|
|
, qttools
|
2020-04-24 10:07:28 +02:00
|
|
|
, qtquickcontrols2
|
|
|
|
, qtgraphicaleffects
|
2020-04-30 09:08:47 +02:00
|
|
|
, mtxclient
|
2020-04-24 10:07:28 +02:00
|
|
|
, boost17x
|
2020-04-30 09:08:47 +02:00
|
|
|
, spdlog
|
2020-12-09 20:53:17 +01:00
|
|
|
, fmt
|
2020-04-30 09:08:47 +02:00
|
|
|
, olm
|
|
|
|
, pkgconfig
|
2019-08-02 14:18:57 +02:00
|
|
|
, nlohmann_json
|
2018-05-24 19:00:40 +02:00
|
|
|
}:
|
2018-04-07 04:05:11 +02:00
|
|
|
|
2019-08-02 14:18:57 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nheko";
|
2020-06-25 15:01:54 +02:00
|
|
|
version = "0.7.2";
|
2018-04-07 04:05:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-02-11 22:40:50 +01:00
|
|
|
owner = "Nheko-Reborn";
|
2018-04-07 04:05:11 +02:00
|
|
|
repo = "nheko";
|
|
|
|
rev = "v${version}";
|
2020-06-25 15:01:54 +02:00
|
|
|
sha256 = "1cbhgaf9klgxdirrxj571fqwspm0byl75c1xc40l727a6qswvp7s";
|
2018-04-07 04:05:11 +02:00
|
|
|
};
|
|
|
|
|
2020-04-30 09:08:47 +02:00
|
|
|
nativeBuildInputs = [
|
2020-04-17 12:19:45 +02:00
|
|
|
lmdbxx
|
2020-04-30 09:08:47 +02:00
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
];
|
2018-04-07 04:05:11 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-04-17 12:19:45 +02:00
|
|
|
nlohmann_json
|
|
|
|
tweeny
|
2020-04-30 09:08:47 +02:00
|
|
|
mtxclient
|
|
|
|
olm
|
2020-04-24 10:07:28 +02:00
|
|
|
boost17x
|
2020-04-30 09:08:47 +02:00
|
|
|
lmdb
|
|
|
|
spdlog
|
2020-12-09 20:53:17 +01:00
|
|
|
fmt
|
2020-04-30 09:08:47 +02:00
|
|
|
cmark
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qttools
|
2020-04-24 10:07:28 +02:00
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
2018-05-24 19:00:40 +02:00
|
|
|
] ++ lib.optional stdenv.isDarwin qtmacextras;
|
2018-04-07 04:05:11 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Desktop client for the Matrix protocol";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Nheko-Reborn/nheko";
|
2018-09-09 22:14:27 +02:00
|
|
|
maintainers = with maintainers; [ ekleog fpletz ];
|
2020-04-30 09:25:38 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
# Should be fixable if a higher clang version is used, see:
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
|
|
|
|
broken = stdenv.targetPlatform.isDarwin;
|
2018-08-09 12:59:52 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2018-04-07 04:05:11 +02:00
|
|
|
};
|
|
|
|
}
|