2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2021-01-01 21:37:44 +01:00
|
|
|
, autoreconfHook
|
|
|
|
, bison
|
2021-05-19 09:52:52 +02:00
|
|
|
, fetchFromGitHub
|
2021-01-01 21:37:44 +01:00
|
|
|
, flex
|
2021-05-19 09:52:52 +02:00
|
|
|
, lksctp-tools
|
2021-01-01 21:37:44 +01:00
|
|
|
, openssl
|
2021-05-19 09:52:52 +02:00
|
|
|
, pkg-config
|
2021-01-01 21:37:44 +01:00
|
|
|
, sqlite
|
2021-05-19 09:52:52 +02:00
|
|
|
, util-linux
|
2021-01-01 21:37:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "solanum";
|
2021-05-19 09:52:52 +02:00
|
|
|
version = "unstable-2021-04-27";
|
2021-01-01 21:37:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "solanum-ircd";
|
|
|
|
repo = pname;
|
2021-05-19 09:52:52 +02:00
|
|
|
rev = "3ff5a12e75662e9a642f2a4364797bd361eb0925";
|
|
|
|
sha256 = "14ywmfdv8cncbyg08y2qdis00kwg8lvhkcgj185is67smh0qf88f";
|
2021-01-01 21:37:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./dont-create-logdir.patch
|
|
|
|
];
|
|
|
|
|
2021-05-31 02:27:08 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/solanum'
|
|
|
|
'';
|
|
|
|
|
2021-01-01 21:37:44 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-epoll"
|
|
|
|
"--enable-ipv6"
|
|
|
|
"--enable-openssl=${openssl.dev}"
|
|
|
|
"--with-program-prefix=solanum-"
|
2021-05-19 09:52:52 +02:00
|
|
|
"--localstatedir=/var/lib"
|
|
|
|
"--with-rundir=/run"
|
|
|
|
"--with-logdir=/var/log"
|
2021-01-15 08:07:56 +01:00
|
|
|
] ++ lib.optionals (stdenv.isLinux) [
|
2021-01-01 21:37:44 +01:00
|
|
|
"--enable-sctp=${lksctp-tools.out}/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
pkg-config
|
2021-05-19 09:52:52 +02:00
|
|
|
util-linux
|
2021-01-01 21:37:44 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-03 16:52:49 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-01-01 21:37:44 +01:00
|
|
|
description = "An IRCd for unified networks";
|
|
|
|
homepage = "https://github.com/solanum-ircd/solanum";
|
2021-06-02 02:41:53 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2021-01-01 21:37:44 +01:00
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|