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

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

77 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv
, autoreconfHook
, bison
2021-05-19 07:52:52 +00:00
, fetchFromGitHub
, flex
2021-05-19 07:52:52 +00:00
, lksctp-tools
, openssl
2021-05-19 07:52:52 +00:00
, pkg-config
, sqlite
2021-05-19 07:52:52 +00:00
, util-linux
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "solanum";
2022-08-16 18:12:18 +00:00
version = "unstable-2022-07-12";
src = fetchFromGitHub {
owner = "solanum-ircd";
repo = pname;
2022-08-16 18:12:18 +00:00
rev = "860187d02895fc953de3475da07a7a06b9380254";
hash = "sha256-g8hXmxTfcPDmQ/cu4AI/iJfrhPLaQJEAeMdDhNDsVXs=";
};
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 07:52:52 +00:00
"--localstatedir=/var/lib"
"--with-rundir=/run"
"--with-logdir=/var/log"
2021-01-15 07:07:56 +00:00
] ++ lib.optionals (stdenv.hostPlatform.isLinux) [
"--enable-sctp=${lksctp-tools.out}/lib"
];
nativeBuildInputs = [
autoreconfHook
bison
flex
pkg-config
2021-05-19 07:52:52 +00:00
util-linux
];
buildInputs = [
openssl
sqlite
];
doCheck = !stdenv.hostPlatform.isDarwin;
2021-01-03 15:52:49 +00:00
enableParallelBuilding = true;
# Missing install depends:
# ...-binutils-2.40/bin/ld: cannot find ./.libs/libircd.so: No such file or directory
# collect2: error: ld returned 1 exit status
# make[4]: *** [Makefile:634: solanum] Error 1
enableParallelInstalling = false;
2021-01-03 15:52:49 +00:00
passthru.tests = { inherit (nixosTests) solanum; };
meta = with lib; {
description = "IRCd for unified networks";
homepage = "https://github.com/solanum-ircd/solanum";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ hexa ];
platforms = platforms.unix;
};
}