2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2021-01-01 21:37:44 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
, lksctp-tools
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "solanum";
|
|
|
|
version = "unstable-2020-12-14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "solanum-ircd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "551e5a146eab4948ce4a57d87a7f671f2d7cc02d";
|
|
|
|
sha256 = "14cd2cb04w6nwck7q49jw5zvifkzhkmblwhjfskc2nxcdb5x3l96";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./dont-create-logdir.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-epoll"
|
|
|
|
"--enable-ipv6"
|
|
|
|
"--enable-openssl=${openssl.dev}"
|
|
|
|
"--with-program-prefix=solanum-"
|
|
|
|
"--localstatedir=/var/lib/solanum"
|
|
|
|
"--with-rundir=/run/solanum"
|
|
|
|
"--with-logdir=/var/log/solanum"
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|