2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "charybdis";
|
|
|
|
version = "4.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charybdis-ircd";
|
|
|
|
repo = "charybdis";
|
2021-08-05 21:33:18 +00:00
|
|
|
rev = "${pname}-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
|
2021-02-05 17:12:51 +00:00
|
|
|
substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/charybdis'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
autoreconfPhase = "sh autogen.sh";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-epoll"
|
|
|
|
"--enable-ipv6"
|
|
|
|
"--enable-openssl=${openssl.dev}"
|
|
|
|
"--with-program-prefix=charybdis-"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex ];
|
|
|
|
buildInputs = [ openssl gnutls ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "IRCv3 server designed to be highly scalable";
|
|
|
|
homepage = "https://github.com/charybdis-ircd/charybdis";
|
|
|
|
license = licenses.gpl2;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ lassulus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|