2018-07-15 21:30:59 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
2015-05-09 20:39:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-26 10:14:29 +02:00
|
|
|
name = "charybdis-4.1.2";
|
2015-05-09 20:39:49 +02:00
|
|
|
|
2016-04-12 02:34:28 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charybdis-ircd";
|
|
|
|
repo = "charybdis";
|
|
|
|
rev = name;
|
2019-09-26 10:14:29 +02:00
|
|
|
sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
|
2015-05-09 20:39:49 +02:00
|
|
|
};
|
|
|
|
|
2018-07-15 21:30:59 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
|
|
|
|
'';
|
|
|
|
|
|
|
|
autoreconfPhase = "sh autogen.sh";
|
2015-05-09 20:39:49 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-epoll"
|
|
|
|
"--enable-ipv6"
|
2016-04-16 19:44:32 +02:00
|
|
|
"--enable-openssl=${openssl.dev}"
|
2015-05-09 20:39:49 +02:00
|
|
|
"--with-program-prefix=charybdis-"
|
|
|
|
];
|
|
|
|
|
2018-07-15 21:30:59 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex ];
|
|
|
|
buildInputs = [ openssl gnutls ];
|
2015-05-09 20:39:49 +02:00
|
|
|
|
2016-04-12 02:34:28 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "IRCv3 server designed to be highly scalable";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/charybdis-ircd/charybdis";
|
2016-04-12 02:34:28 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ lassulus fpletz ];
|
|
|
|
platforms = platforms.unix;
|
2015-05-09 20:39:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|