1 { lib, stdenv, fetchFromGitHub, fetchpatch2, cmake, pkg-config, bzip2, libX11
2 , mkDerivation, qtbase, qttools, qtmultimedia, qtscript
3 , libiconv, pcre-cpp, libidn, lua5, miniupnpc, aspell, gettext, perl }:
9 src = fetchFromGitHub {
10 owner = "eiskaltdcpp";
13 sha256 = "sha256-JmAopXFS6MkxW0wDQ1bC/ibRmWgOpzU0971hcqAehLU=";
18 url = "https://github.com/eiskaltdcpp/eiskaltdcpp/commit/5ab5e1137a46864b6ecd1ca302756da8b833f754.patch?full_index=1";
19 hash = "sha256-GIdcIHKXNSbHxbiMGRPgfq2w/zNSfR/FhyyXayFWfg8=";
23 nativeBuildInputs = [ cmake pkg-config ];
24 buildInputs = [ qtbase qttools qtmultimedia qtscript bzip2 libX11 pcre-cpp libidn lua5 miniupnpc aspell gettext
25 (perl.withPackages (p: with p; [
29 ++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
33 "-DFREE_SPACE_BAR_C=ON"
37 "-DUSE_CLI_JSONRPC=ON"
40 "-DWITH_LUASCRIPTS=ON"
45 ln -s $out/bin/$pname-qt $out/bin/$pname
49 substituteInPlace $out/bin/eiskaltdcpp-cli-jsonrpc \
50 --replace "/usr/local" "$out"
54 description = "Cross-platform program that uses the Direct Connect and ADC protocols";
55 homepage = "https://github.com/eiskaltdcpp/eiskaltdcpp";
56 license = licenses.gpl3Plus;
57 platforms = platforms.linux;