libirc: init at 2022-10-16

This commit is contained in:
Deadbeef 2022-10-16 00:39:27 +08:00
parent 2a43d36a31
commit f59dde3239
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib, stdenv, fetchFromGitHub, cmake, qtbase }:
stdenv.mkDerivation rec {
pname = "libirc";
version = "unstable-2022-10-15";
src = fetchFromGitHub {
owner = "grumpy-irc";
repo = "libirc";
rev = "734082ffffb6d6744070c75587159d927342edea";
sha256 = "Qi/YKLlau0rdQ9XCMyreQdv4ctQWHFIoE3YlW6QnbSI=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DQT5_BUILD=1"
"-DQt5Core_DIR=${qtbase.dev}/lib/cmake/Qt5Core"
"-DQt5Network_DIR=${qtbase.dev}/lib/cmake/Qt5Network"
];
preFixup = ''
mkdir -p $out/libirc/libirc{,client}
cp ../libirc/*.h $out/libirc/libirc
cp ../libircclient/*.h $out/libirc/libircclient
'';
meta = with lib; {
description = "C++ IRC library written in Qt with support for data serialization";
homepage = "https://github.com/grumpy-irc/libirc";
license = licenses.lgpl3;
maintainers = with maintainers; [ fee1-dead ];
platforms = platforms.linux;
};
}

View File

@ -8787,6 +8787,8 @@ with pkgs;
libipfix = callPackage ../development/libraries/libipfix { };
libirc = libsForQt5.callPackage ../development/libraries/libirc { };
libircclient = callPackage ../development/libraries/libircclient { };
libiscsi = callPackage ../development/libraries/libiscsi { };