3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/p2p/eiskaltdcpp/default.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

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 }:
2021-02-09 18:46:05 +00:00
mkDerivation rec {
pname = "eiskaltdcpp";
2021-03-04 14:52:44 +00:00
version = "2.4.2";
src = fetchFromGitHub {
owner = "eiskaltdcpp";
repo = "eiskaltdcpp";
rev = "v${version}";
2021-03-04 14:52:44 +00:00
sha256 = "sha256-JmAopXFS6MkxW0wDQ1bC/ibRmWgOpzU0971hcqAehLU=";
};
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;
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"
];
2021-02-09 18:46:05 +00:00
preFixup = ''
substituteInPlace $out/bin/eiskaltdcpp-cli-xmlrpc \
--replace "/usr/local" "$out"
'';
meta = with lib; {
description = "A cross-platform program that uses the Direct Connect and ADC protocols";
homepage = "https://github.com/eiskaltdcpp/eiskaltdcpp";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}