2020-10-05 12:19:08 +01:00
|
|
|
{ mkDerivation, lib, lazarus, qmake, qtbase, qtx11extras }:
|
2020-09-06 10:56:08 +01:00
|
|
|
|
2020-10-05 12:19:08 +01:00
|
|
|
mkDerivation {
|
2020-09-06 10:56:08 +01:00
|
|
|
pname = "libqt5pas";
|
|
|
|
inherit (lazarus) version src;
|
|
|
|
|
|
|
|
sourceRoot = "lazarus/lcl/interfaces/qt5/cbindings";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Qt5Pas.pro \
|
2020-10-05 12:19:08 +01:00
|
|
|
--replace 'target.path = $$[QT_INSTALL_LIBS]' "target.path = $out/lib"
|
2020-09-06 10:56:08 +01:00
|
|
|
'';
|
|
|
|
|
2020-10-05 12:19:08 +01:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2020-09-06 10:56:08 +01:00
|
|
|
|
2020-10-05 12:19:08 +01:00
|
|
|
buildInputs = [ qtbase qtx11extras ];
|
2020-09-06 10:56:08 +01:00
|
|
|
|
2020-10-05 12:19:08 +01:00
|
|
|
meta = with lib; {
|
2020-09-06 10:56:08 +01:00
|
|
|
description = "Free Pascal Qt5 binding library";
|
|
|
|
homepage = "https://wiki.freepascal.org/Qt5_Interface#libqt5pas";
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
inherit (lazarus.meta) license platforms;
|
|
|
|
};
|
|
|
|
}
|