2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase, qtdeclarative, qmake, which
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcommuni";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "3.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "communi";
|
|
|
|
repo = "libcommuni";
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-9eYJpmjW1J48RD6wVJOHmsAgTbauNeeCrXe076ufq1I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
|
|
|
nativeBuildInputs = [ qmake which ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
dontUseQmakeConfigure = true;
|
2021-05-20 23:08:51 +00:00
|
|
|
configureFlags = [ "-config" "release" ]
|
2022-12-28 21:21:41 +00:00
|
|
|
# Build mixes up dylibs/frameworks if one is not explicitly specified.
|
2021-05-20 23:08:51 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ "-config" "qt_framework" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e 's|/bin/pwd|pwd|g' configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
# The tests fail on darwin because of install_name if they run
|
|
|
|
# before the frameworks are installed.
|
|
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckTarget = "check";
|
|
|
|
|
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
|
|
|
preFixup = "rm -rf lib";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cross-platform IRC framework written with Qt";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://communi.github.io";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
|
|
|
};
|
|
|
|
}
|