nixpkgs-suyu/pkgs/applications/networking/instant-messengers/nheko/default.nix

79 lines
1.6 KiB
Nix
Raw Normal View History

2020-04-30 09:08:47 +02:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, cmark
, lmdb
, lmdbxx
, tweeny
2020-04-30 09:08:47 +02:00
, mkDerivation
, qtbase
, qtmacextras
, qtmultimedia
, qttools
, mtxclient
, boost
, spdlog
, olm
, pkgconfig
, nlohmann_json
2018-05-24 19:00:40 +02:00
}:
2018-04-07 04:05:11 +02:00
mkDerivation rec {
pname = "nheko";
version = "0.6.4";
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}";
sha256 = "19dkc98l1q4070v6mli4ybqn0ip0za607w39hjf0x8rqdxq45iwm";
2018-04-07 04:05:11 +02:00
};
2018-05-24 19:00:40 +02:00
# If, on Darwin, you encounter the error
# error: must specify at least one argument for '...' parameter of variadic
# macro [-Werror,-Wgnu-zero-variadic-macro-arguments]
# Then adding this parameter is likely the fix you want.
#
# However, it looks like either cmake doesn't honor this CFLAGS variable, or
# darwin's compiler doesn't have the same syntax as gcc for turning off
# -Werror selectively.
#
# Anyway, this is something that will have to be debugged with access to a
# darwin-based OS. Sorry about that!
#
#preConfigure = lib.optionalString stdenv.isDarwin ''
# export CFLAGS=-Wno-error=gnu-zero-variadic-macro-arguments
#'';
2020-04-30 09:08:47 +02:00
nativeBuildInputs = [
lmdbxx
2020-04-30 09:08:47 +02:00
cmake
pkgconfig
];
2018-04-07 04:05:11 +02:00
buildInputs = [
nlohmann_json
tweeny
2020-04-30 09:08:47 +02:00
mtxclient
olm
boost
lmdb
spdlog
cmark
qtbase
qtmultimedia
qttools
2018-05-24 19:00:40 +02:00
] ++ lib.optional stdenv.isDarwin qtmacextras;
2018-04-07 04:05:11 +02:00
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Desktop client for the Matrix protocol";
homepage = "https://github.com/Nheko-Reborn/nheko";
2018-09-09 22:14:27 +02:00
maintainers = with maintainers; [ ekleog fpletz ];
platforms = platforms.unix;
2018-08-09 12:59:52 +02:00
license = licenses.gpl3Plus;
2018-04-07 04:05:11 +02:00
};
}