biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / irc / charybdis / default.nix
blob37d5b299837d114e4f05d196f93c3e8367adab80
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
3 stdenv.mkDerivation rec {
4   pname = "charybdis";
5   version = "4.1.2";
7   src = fetchFromGitHub {
8     owner = "charybdis-ircd";
9     repo = "charybdis";
10     rev = "${pname}-${version}";
11     sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
12   };
14   postPatch = ''
15     substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
16     substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/charybdis'
17   '';
19   autoreconfPhase = "sh autogen.sh";
21   configureFlags = [
22     "--enable-epoll"
23     "--enable-ipv6"
24     "--enable-openssl=${openssl.dev}"
25     "--with-program-prefix=charybdis-"
26   ];
28   nativeBuildInputs = [ autoreconfHook bison flex ];
29   buildInputs = [ openssl gnutls ];
31   meta = with lib; {
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;
37   };