2018-07-15 19:30:59 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
2015-05-09 18:39:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-24 19:54:44 +00:00
|
|
|
name = "charybdis-4.1.1";
|
2015-05-09 18:39:49 +00:00
|
|
|
|
2016-04-12 00:34:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charybdis-ircd";
|
|
|
|
repo = "charybdis";
|
|
|
|
rev = name;
|
2018-08-24 19:54:44 +00:00
|
|
|
sha256 = "0wvssc8b1xq6svcqrwxrpc1ga8ip0sksv73wwbk8na0pmysdvpg0";
|
2015-05-09 18:39:49 +00:00
|
|
|
};
|
|
|
|
|
2018-07-15 19:30:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
|
|
|
|
'';
|
|
|
|
|
|
|
|
autoreconfPhase = "sh autogen.sh";
|
2015-05-09 18:39:49 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-epoll"
|
|
|
|
"--enable-ipv6"
|
2016-04-16 17:44:32 +00:00
|
|
|
"--enable-openssl=${openssl.dev}"
|
2015-05-09 18:39:49 +00:00
|
|
|
"--with-program-prefix=charybdis-"
|
|
|
|
];
|
|
|
|
|
2018-07-15 19:30:59 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex ];
|
|
|
|
buildInputs = [ openssl gnutls ];
|
2015-05-09 18:39:49 +00:00
|
|
|
|
2016-04-12 00:34:28 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "IRCv3 server designed to be highly scalable";
|
2017-08-17 22:01:30 +00:00
|
|
|
homepage = http://atheme.org/projects/charybdis.html;
|
2016-04-12 00:34:28 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ lassulus fpletz ];
|
|
|
|
platforms = platforms.unix;
|
2015-05-09 18:39:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|