blob: 19b561de532cfdacfdafd490c3567c7c2903436e (
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
|
{
stdenv,
lib,
lazarus,
qmake,
qtbase,
# Not in Qt6 anymore
qtx11extras ? null,
}:
let
qtVersion = lib.versions.major qtbase.version;
in
stdenv.mkDerivation {
pname = "libqtpas";
inherit (lazarus) version src;
sourceRoot = "lazarus/lcl/interfaces/qt${qtVersion}/cbindings";
postPatch = ''
substituteInPlace Qt${qtVersion}Pas.pro \
--replace 'target.path = $$[QT_INSTALL_LIBS]' "target.path = $out/lib"
'';
nativeBuildInputs = [ qmake ];
buildInputs = [
qtbase
]
++ lib.optionals (qtVersion == "5") [
qtx11extras
];
dontWrapQtApps = true;
meta = {
description = "Free Pascal Qt${qtVersion} binding library";
homepage =
"https://wiki.freepascal.org/Qt${qtVersion}_Interface"
+ lib.optionalString (qtVersion == "5") "#libqt5pas";
maintainers = with lib.maintainers; [ sikmir ];
inherit (lazarus.meta) license platforms;
};
}
|