microfetch: 0.4.4 -> 0.4.6 (#377799)
[NixPkgs.git] / pkgs / servers / irc / charybdis / default.nix
blob1b9dc07574661da213f3c23f9cd6e801db84efce
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6   bison,
7   flex,
8   openssl,
9   gnutls,
12 stdenv.mkDerivation rec {
13   pname = "charybdis";
14   version = "4.1.2";
16   src = fetchFromGitHub {
17     owner = "charybdis-ircd";
18     repo = "charybdis";
19     rev = "${pname}-${version}";
20     sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
21   };
23   postPatch = ''
24     substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
25     substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/charybdis'
26   '';
28   autoreconfPhase = "sh autogen.sh";
30   configureFlags = [
31     "--enable-epoll"
32     "--enable-ipv6"
33     "--enable-openssl=${openssl.dev}"
34     "--with-program-prefix=charybdis-"
35   ];
37   nativeBuildInputs = [
38     autoreconfHook
39     bison
40     flex
41   ];
42   buildInputs = [
43     openssl
44     gnutls
45   ];
47   meta = with lib; {
48     description = "IRCv3 server designed to be highly scalable";
49     homepage = "https://github.com/charybdis-ircd/charybdis";
50     license = licenses.gpl2Plus;
51     maintainers = with maintainers; [ lassulus ];
52     platforms = platforms.unix;
53   };