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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
, autoreconfHook
, bison
2021-05-19 08:52:52 +01:00
, fetchFromGitHub
, flex
2021-05-19 08:52:52 +01:00
, lksctp-tools
, openssl
2021-05-19 08:52:52 +01:00
, pkg-config
, sqlite
2021-05-19 08:52:52 +01:00
, util-linux
}:
stdenv.mkDerivation rec {
pname = "solanum";
version = "unstable-2021-11-14";
src = fetchFromGitHub {
owner = "solanum-ircd";
repo = pname;
rev = "bd38559fedcdfded4d9acbcbf988e4a8f5057eeb";
sha256 = "sha256-2P+mqf5b+TD9+9dLahXOdH7ZZhPWUoR1eV73YHbRbAA=";
};
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 08:52:52 +01:00
"--localstatedir=/var/lib"
"--with-rundir=/run"
"--with-logdir=/var/log"
2021-01-15 07:07:56 +00:00
] ++ lib.optionals (stdenv.isLinux) [
"--enable-sctp=${lksctp-tools.out}/lib"
];
nativeBuildInputs = [
autoreconfHook
bison
flex
pkg-config
2021-05-19 08:52:52 +01:00
util-linux
];
buildInputs = [
openssl
sqlite
];
doCheck = !stdenv.isDarwin;
2021-01-03 15:52:49 +00:00
enableParallelBuilding = true;
meta = with lib; {
description = "An IRCd for unified networks";
homepage = "https://github.com/solanum-ircd/solanum";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ hexa ];
platforms = platforms.unix;
};
}