1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00
nixpkgs/pkgs/servers/irc/charybdis/default.nix
2018-07-15 21:41:46 +02:00

38 lines
977 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
stdenv.mkDerivation rec {
name = "charybdis-4.1";
src = fetchFromGitHub {
owner = "charybdis-ircd";
repo = "charybdis";
rev = name;
sha256 = "1j0fjf4rdiyvakxqa97x272xra64rzjhbj8faciyb4b13pyrdsmw";
};
postPatch = ''
substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
'';
autoreconfPhase = "sh autogen.sh";
configureFlags = [
"--enable-epoll"
"--enable-ipv6"
"--enable-openssl=${openssl.dev}"
"--with-program-prefix=charybdis-"
];
nativeBuildInputs = [ autoreconfHook bison flex ];
buildInputs = [ openssl gnutls ];
meta = with stdenv.lib; {
description = "IRCv3 server designed to be highly scalable";
homepage = http://atheme.org/projects/charybdis.html;
license = licenses.gpl2;
maintainers = with maintainers; [ lassulus fpletz ];
platforms = platforms.unix;
};
}