summaryrefslogtreecommitdiff
path: root/pkgs/servers/irc
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/irc')
-rw-r--r--pkgs/servers/irc/inspircd/default.nix8
-rw-r--r--pkgs/servers/irc/solanum/bandb.patch12
-rw-r--r--pkgs/servers/irc/solanum/default.nix21
3 files changed, 30 insertions, 11 deletions
diff --git a/pkgs/servers/irc/inspircd/default.nix b/pkgs/servers/irc/inspircd/default.nix
index f907e337ce6d..561151bfa754 100644
--- a/pkgs/servers/irc/inspircd/default.nix
+++ b/pkgs/servers/irc/inspircd/default.nix
@@ -142,13 +142,13 @@ in
stdenv.mkDerivation rec {
pname = "inspircd";
- version = "3.9.0";
+ version = "3.10.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
- sha256 = "0x3paasf4ynx4ddky2nq613vyirbhfnxzkjq148k7154pz3q426s";
+ sha256 = "1817gmxk4v7k5398d2fb6qkwadg0fd980gqmr80wdnppx450ikn7";
};
outputs = [ "bin" "lib" "man" "doc" "out" ];
@@ -160,6 +160,8 @@ stdenv.mkDerivation rec {
buildInputs = extraInputs;
configurePhase = ''
+ runHook preConfigure
+
patchShebangs configure make/*.pl
# configure is executed twice, once to set the extras
@@ -183,6 +185,8 @@ stdenv.mkDerivation rec {
--module-dir ${placeholder "lib"}/lib/inspircd \
--runtime-dir /var/run \
--script-dir ${placeholder "bin"}/share/inspircd \
+
+ runHook postConfigure
'';
postInstall = ''
diff --git a/pkgs/servers/irc/solanum/bandb.patch b/pkgs/servers/irc/solanum/bandb.patch
new file mode 100644
index 000000000000..7d204398b991
--- /dev/null
+++ b/pkgs/servers/irc/solanum/bandb.patch
@@ -0,0 +1,12 @@
+diff --git a/ircd/bandbi.c b/ircd/bandbi.c
+index 29a3bfa2..16a40f17 100644
+--- a/ircd/bandbi.c
++++ b/ircd/bandbi.c
+@@ -83,7 +83,6 @@ start_bandb(void)
+ const char *suffix = "";
+ #endif
+
+- rb_setenv("BANDB_DBPATH", ircd_paths[IRCD_PATH_BANDB], 1);
+ if(bandb_path == NULL)
+ {
+ snprintf(fullpath, sizeof(fullpath), "%s%cbandb%s", ircd_paths[IRCD_PATH_LIBEXEC], RB_PATH_SEPARATOR, suffix);
diff --git a/pkgs/servers/irc/solanum/default.nix b/pkgs/servers/irc/solanum/default.nix
index 1d39526ed1ee..2d9035259a62 100644
--- a/pkgs/servers/irc/solanum/default.nix
+++ b/pkgs/servers/irc/solanum/default.nix
@@ -1,27 +1,29 @@
{ lib, stdenv
-, fetchFromGitHub
, autoreconfHook
-, pkg-config
, bison
+, fetchFromGitHub
, flex
+, lksctp-tools
, openssl
+, pkg-config
, sqlite
-, lksctp-tools
+, util-linux
}:
stdenv.mkDerivation rec {
pname = "solanum";
- version = "unstable-2020-12-14";
+ version = "unstable-2021-04-27";
src = fetchFromGitHub {
owner = "solanum-ircd";
repo = pname;
- rev = "551e5a146eab4948ce4a57d87a7f671f2d7cc02d";
- sha256 = "14cd2cb04w6nwck7q49jw5zvifkzhkmblwhjfskc2nxcdb5x3l96";
+ rev = "3ff5a12e75662e9a642f2a4364797bd361eb0925";
+ sha256 = "14ywmfdv8cncbyg08y2qdis00kwg8lvhkcgj185is67smh0qf88f";
};
patches = [
./dont-create-logdir.patch
+ ./bandb.patch # https://github.com/solanum-ircd/solanum/issues/156
];
configureFlags = [
@@ -29,9 +31,9 @@ stdenv.mkDerivation rec {
"--enable-ipv6"
"--enable-openssl=${openssl.dev}"
"--with-program-prefix=solanum-"
- "--localstatedir=/var/lib/solanum"
- "--with-rundir=/run/solanum"
- "--with-logdir=/var/log/solanum"
+ "--localstatedir=/var/lib"
+ "--with-rundir=/run"
+ "--with-logdir=/var/log"
] ++ lib.optionals (stdenv.isLinux) [
"--enable-sctp=${lksctp-tools.out}/lib"
];
@@ -41,6 +43,7 @@ stdenv.mkDerivation rec {
bison
flex
pkg-config
+ util-linux
];
buildInputs = [