blob: 887563fe729f1cd901fc7821afd55b5b600cb90f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
lib,
stdenv,
fetchFromGitHub,
qtbase,
qtdeclarative,
qmake,
which,
}:
stdenv.mkDerivation rec {
pname = "libcommuni";
version = "3.7.0";
src = fetchFromGitHub {
owner = "communi";
repo = "libcommuni";
rev = "v${version}";
sha256 = "sha256-9eYJpmjW1J48RD6wVJOHmsAgTbauNeeCrXe076ufq1I=";
};
buildInputs = [
qtbase
qtdeclarative
];
nativeBuildInputs = [
qmake
which
];
enableParallelBuilding = true;
dontUseQmakeConfigure = true;
configureFlags = [
"-config"
"release"
]
# Build mixes up dylibs/frameworks if one is not explicitly specified.
++ lib.optionals stdenv.hostPlatform.isDarwin [
"-config"
"qt_framework"
];
dontWrapQtApps = true;
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";
meta = {
description = "Cross-platform IRC framework written with Qt";
homepage = "https://communi.github.io";
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
};
}
|