diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/irc/solanum/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/irc/solanum/default.nix | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/irc/solanum/default.nix b/nixpkgs/pkgs/servers/irc/solanum/default.nix new file mode 100644 index 000000000000..df1218ba7920 --- /dev/null +++ b/nixpkgs/pkgs/servers/irc/solanum/default.nix @@ -0,0 +1,68 @@ +{ lib, stdenv +, autoreconfHook +, bison +, fetchFromGitHub +, flex +, lksctp-tools +, openssl +, pkg-config +, sqlite +, util-linux +}: + +stdenv.mkDerivation rec { + pname = "solanum"; + version = "unstable-2022-07-12"; + + src = fetchFromGitHub { + owner = "solanum-ircd"; + repo = pname; + 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-" + "--localstatedir=/var/lib" + "--with-rundir=/run" + "--with-logdir=/var/log" + ] ++ lib.optionals (stdenv.isLinux) [ + "--enable-sctp=${lksctp-tools.out}/lib" + ]; + + nativeBuildInputs = [ + autoreconfHook + bison + flex + pkg-config + util-linux + ]; + + buildInputs = [ + openssl + sqlite + ]; + + doCheck = !stdenv.isDarwin; + + 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; + }; +} |