2021-02-09 18:46:05 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, bzip2, libX11
|
|
|
|
, mkDerivation, qtbase, qttools, qtmultimedia, qtscript
|
|
|
|
, libiconv, pcre-cpp, libidn, lua5, miniupnpc, aspell, gettext, perl }:
|
2014-06-22 15:28:37 +01:00
|
|
|
|
2021-02-09 18:46:05 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "eiskaltdcpp";
|
2021-03-04 14:52:44 +00:00
|
|
|
version = "2.4.2";
|
2014-06-22 15:28:37 +01:00
|
|
|
|
2017-07-28 23:22:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eiskaltdcpp";
|
|
|
|
repo = "eiskaltdcpp";
|
|
|
|
rev = "v${version}";
|
2021-03-04 14:52:44 +00:00
|
|
|
sha256 = "sha256-JmAopXFS6MkxW0wDQ1bC/ibRmWgOpzU0971hcqAehLU=";
|
2014-06-22 15:28:37 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2021-02-09 18:46:05 +00:00
|
|
|
buildInputs = [ qtbase qttools qtmultimedia qtscript boost bzip2 libX11 pcre-cpp libidn lua5 miniupnpc aspell gettext
|
|
|
|
(perl.withPackages (p: with p; [
|
|
|
|
GetoptLong
|
|
|
|
RpcXML
|
|
|
|
TermShellUI
|
|
|
|
])) ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optional stdenv.isDarwin libiconv;
|
2014-06-22 15:28:37 +01:00
|
|
|
|
2019-10-28 09:17:49 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_ASPELL=ON"
|
|
|
|
"-DFREE_SPACE_BAR_C=ON"
|
|
|
|
"-DUSE_MINIUPNP=ON"
|
|
|
|
"-DLOCAL_MINIUPNP=ON"
|
|
|
|
"-DDBUS_NOTIFY=ON"
|
|
|
|
"-DUSE_JS=ON"
|
|
|
|
"-DPERL_REGEX=ON"
|
|
|
|
"-DUSE_CLI_XMLRPC=ON"
|
|
|
|
"-DWITH_SOUNDS=ON"
|
|
|
|
"-DLUA_SCRIPT=ON"
|
|
|
|
"-DWITH_LUASCRIPTS=ON"
|
|
|
|
];
|
2014-06-22 15:28:37 +01:00
|
|
|
|
2021-02-09 18:46:05 +00:00
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/bin/eiskaltdcpp-cli-xmlrpc \
|
|
|
|
--replace "/usr/local" "$out"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-08-14 20:09:41 +01:00
|
|
|
description = "A cross-platform program that uses the Direct Connect and ADC protocols";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/eiskaltdcpp/eiskaltdcpp";
|
2014-08-14 20:09:41 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2018-09-21 19:49:37 +01:00
|
|
|
platforms = platforms.linux;
|
2014-06-22 15:28:37 +01:00
|
|
|
};
|
|
|
|
}
|