2017-08-29 10:45:19 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, qtbase, qtdeclarative, qmake, which
|
2016-01-10 11:01:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libcommuni";
|
2017-08-29 10:45:19 +00:00
|
|
|
version = "3.5.0";
|
2016-01-10 11:01:05 +00:00
|
|
|
|
2016-08-29 13:37:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "communi";
|
|
|
|
repo = "libcommuni";
|
2017-08-29 10:45:19 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "15crqc7a4kwrfbxs121rpdysw0694hh7dr290gg7pm61akvnrqcm";
|
2016-01-10 11:01:05 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 13:37:38 +00:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2017-06-02 15:40:19 +00:00
|
|
|
nativeBuildInputs = [ qmake which ];
|
2016-01-10 11:01:05 +00:00
|
|
|
|
2016-09-01 08:46:11 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-01-10 11:01:05 +00:00
|
|
|
|
2016-06-30 01:29:59 +00:00
|
|
|
dontUseQmakeConfigure = true;
|
2018-03-17 13:40:31 +00:00
|
|
|
configureFlags = [ "-config" "release" ];
|
|
|
|
|
2016-06-30 01:29:59 +00:00
|
|
|
preConfigure = ''
|
2016-04-16 19:59:20 +00: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 16:26:31 +00:00
|
|
|
doCheck = false;
|
2018-03-17 13:40:31 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckTarget = "check";
|
2016-06-30 07:46:11 +00:00
|
|
|
|
2017-05-16 14:35:52 +00:00
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
2017-08-29 10:45:19 +00:00
|
|
|
preFixup = "rm -rf lib";
|
2017-05-16 14:35:52 +00:00
|
|
|
|
2016-01-10 11:01:05 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A cross-platform IRC framework written with Qt";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://communi.github.io";
|
2016-01-10 11:01:05 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
|
|
|
};
|
|
|
|
}
|