2017-08-29 12:45:19 +02:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, qtbase, qtdeclarative, qmake, which
|
2016-01-10 12:01:05 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcommuni-${version}";
|
2017-08-29 12:45:19 +02:00
|
|
|
version = "3.5.0";
|
2016-01-10 12:01:05 +01:00
|
|
|
|
2016-08-29 15:37:38 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "communi";
|
|
|
|
repo = "libcommuni";
|
2017-08-29 12:45:19 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "15crqc7a4kwrfbxs121rpdysw0694hh7dr290gg7pm61akvnrqcm";
|
2016-01-10 12:01:05 +01:00
|
|
|
};
|
|
|
|
|
2016-08-29 15:37:38 +02:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2017-06-02 17:40:19 +02:00
|
|
|
nativeBuildInputs = [ qmake which ];
|
2016-01-10 12:01:05 +01:00
|
|
|
|
2016-09-01 10:46:11 +02:00
|
|
|
enableParallelBuilding = true;
|
2016-01-10 12:01:05 +01:00
|
|
|
|
2016-06-30 03:29:59 +02:00
|
|
|
dontUseQmakeConfigure = true;
|
|
|
|
configureFlags = "-config release";
|
|
|
|
preConfigure = ''
|
2016-04-16 21:59:20 +02:00
|
|
|
sed -i -e 's|/bin/pwd|pwd|g' configure
|
2016-01-10 12:01:05 +01:00
|
|
|
'';
|
|
|
|
|
2016-06-30 09:46:11 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-05-16 16:35:52 +02:00
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
2017-08-29 12:45:19 +02:00
|
|
|
preFixup = "rm -rf lib";
|
2017-05-16 16:35:52 +02:00
|
|
|
|
2016-01-10 12:01:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A cross-platform IRC framework written with Qt";
|
|
|
|
homepage = https://communi.github.io;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
|
|
|
};
|
|
|
|
}
|