2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2017-08-29 11:45:19 +01:00
|
|
|
, qtbase, qtdeclarative, qmake, which
|
2016-01-10 11:01:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libcommuni";
|
2021-01-19 17:52:52 +00:00
|
|
|
version = "3.6.0";
|
2016-01-10 11:01:05 +00:00
|
|
|
|
2016-08-29 14:37:38 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "communi";
|
|
|
|
repo = "libcommuni";
|
2017-08-29 11:45:19 +01:00
|
|
|
rev = "v${version}";
|
2021-01-19 17:52:52 +00:00
|
|
|
sha256 = "sha256-ABvrMoOVSycbQ8iRDzi7zkFnuSgHMMBgm9cDUWlD4uc=";
|
2016-01-10 11:01:05 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 14:37:38 +01:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2017-06-02 16:40:19 +01:00
|
|
|
nativeBuildInputs = [ qmake which ];
|
2016-01-10 11:01:05 +00:00
|
|
|
|
2016-09-01 09:46:11 +01:00
|
|
|
enableParallelBuilding = true;
|
2016-01-10 11:01:05 +00:00
|
|
|
|
2016-06-30 02:29:59 +01:00
|
|
|
dontUseQmakeConfigure = true;
|
2021-05-11 10:55:22 +01:00
|
|
|
configureFlags = [ "-config" "release" ]
|
|
|
|
# Build mixes up dylibs/frameworks if one is not explicitely specified.
|
|
|
|
++ lib.optionals stdenv.isDarwin [ "-config" "qt_framework" ];
|
2018-03-17 13:40:31 +00:00
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2016-06-30 02:29:59 +01:00
|
|
|
preConfigure = ''
|
2016-04-16 20:59:20 +01:00
|
|
|
sed -i -e 's|/bin/pwd|pwd|g' configure
|
2016-01-10 11:01:05 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-17 13:40:31 +00:00
|
|
|
# The tests fail on darwin because of install_name if they run
|
|
|
|
# before the frameworks are installed.
|
2018-07-16 17:26:31 +01:00
|
|
|
doCheck = false;
|
2018-03-17 13:40:31 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckTarget = "check";
|
2016-06-30 08:46:11 +01:00
|
|
|
|
2017-05-16 15:35:52 +01:00
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
2017-08-29 11:45:19 +01:00
|
|
|
preFixup = "rm -rf lib";
|
2017-05-16 15:35:52 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-01-10 11:01:05 +00:00
|
|
|
description = "A cross-platform IRC framework written with Qt";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://communi.github.io";
|
2016-01-10 11:01:05 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
|
|
|
};
|
|
|
|
}
|