2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
2015-05-09 18:39:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-25 21:53:02 +00:00
|
|
|
pname = "charybdis";
|
|
|
|
version = "4.1.2";
|
2015-05-09 18:39:49 +00:00
|
|
|
|
2016-04-12 00:34:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charybdis-ircd";
|
|
|
|
repo = "charybdis";
|
2021-07-25 21:53:02 +00:00
|
|
|
rev = "${pname}-${version}";
|
2019-09-26 08:14:29 +00:00
|
|
|
sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
|
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'
|
2021-01-18 05:05:01 +00:00
|
|
|
substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/charybdis'
|
2018-07-15 19:30:59 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-04-12 00:34:28 +00:00
|
|
|
description = "IRCv3 server designed to be highly scalable";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/charybdis-ircd/charybdis";
|
2016-04-12 00:34:28 +00:00
|
|
|
license = licenses.gpl2;
|
2022-08-03 12:13:56 +00:00
|
|
|
maintainers = with maintainers; [ lassulus ];
|
2016-04-12 00:34:28 +00:00
|
|
|
platforms = platforms.unix;
|
2015-05-09 18:39:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|