nixpkgs/pkgs/servers/irc/solanum/default.nix

69 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
, autoreconfHook
, bison
2021-05-19 09:52:52 +02:00
, fetchFromGitHub
, flex
2021-05-19 09:52:52 +02:00
, lksctp-tools
, openssl
2021-05-19 09:52:52 +02:00
, pkg-config
, sqlite
2021-05-19 09:52:52 +02:00
, util-linux
}:
stdenv.mkDerivation rec {
pname = "solanum";
2021-05-19 09:52:52 +02:00
version = "unstable-2021-04-27";
src = fetchFromGitHub {
owner = "solanum-ircd";
repo = pname;
2021-05-19 09:52:52 +02:00
rev = "3ff5a12e75662e9a642f2a4364797bd361eb0925";
sha256 = "14ywmfdv8cncbyg08y2qdis00kwg8lvhkcgj185is67smh0qf88f";
};
patches = [
./dont-create-logdir.patch
];
postPatch = ''
substituteInPlace include/defaults.h --replace 'ETCPATH "' '"/etc/solanum'
'';
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) [
"--enable-sctp=${lksctp-tools.out}/lib"
];
nativeBuildInputs = [
autoreconfHook
bison
flex
pkg-config
2021-05-19 09:52:52 +02:00
util-linux
];
buildInputs = [
openssl
sqlite
];
doCheck = !stdenv.isDarwin;
2021-01-03 16:52:49 +01:00
enableParallelBuilding = true;
meta = with lib; {
description = "An IRCd for unified networks";
homepage = "https://github.com/solanum-ircd/solanum";
license = licenses.gpl2Only;
maintainers = with maintainers; [ hexa ];
platforms = platforms.unix;
};
}