1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00
nixpkgs/pkgs/servers/irc/charybdis/default.nix
nyanotech 6a5e88d0f8
charybdis: fix motd
without this change, it looks for motd in the etc/ inside the store path, so services.charybdis.motd ends up having no effect
2021-01-18 05:05:01 +00:00

39 lines
1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
stdenv.mkDerivation rec {
name = "charybdis-4.1.2";
src = fetchFromGitHub {
owner = "charybdis-ircd";
repo = "charybdis";
rev = name;
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 fpletz ];
platforms = platforms.unix;
};
}