mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
c092a502df
Only packages I'm not able to maintain anymore as of today. Mostly because I'm haven't been using them in a while.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "charybdis";
|
|
version = "4.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "charybdis-ircd";
|
|
repo = "charybdis";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace include/defaults.h --replace 'PKGLOCALSTATEDIR "' '"/var/lib/charybdis'
|
|
substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/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 lib; {
|
|
description = "IRCv3 server designed to be highly scalable";
|
|
homepage = "https://github.com/charybdis-ircd/charybdis";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ lassulus ];
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|