1 { lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "charybdis-ircd";
10 rev = "${pname}-${version}";
11 sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
15 substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
16 substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/charybdis'
19 autoreconfPhase = "sh autogen.sh";
24 "--enable-openssl=${openssl.dev}"
25 "--with-program-prefix=charybdis-"
28 nativeBuildInputs = [ autoreconfHook bison flex ];
29 buildInputs = [ openssl gnutls ];
32 description = "IRCv3 server designed to be highly scalable";
33 homepage = "https://github.com/charybdis-ircd/charybdis";
34 license = licenses.gpl2;
35 maintainers = with maintainers; [ lassulus ];
36 platforms = platforms.unix;