Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ mkDerivation, lib, lazarus, qmake, qtbase, qtx11extras }:
2
3mkDerivation {
4 pname = "libqt5pas";
5 inherit (lazarus) version src;
6
7 sourceRoot = "lazarus/lcl/interfaces/qt5/cbindings";
8
9 postPatch = ''
10 substituteInPlace Qt5Pas.pro \
11 --replace 'target.path = $$[QT_INSTALL_LIBS]' "target.path = $out/lib"
12 '';
13
14 nativeBuildInputs = [ qmake ];
15
16 buildInputs = [ qtbase qtx11extras ];
17
18 meta = with lib; {
19 description = "Free Pascal Qt5 binding library";
20 homepage = "https://wiki.freepascal.org/Qt5_Interface#libqt5pas";
21 maintainers = with maintainers; [ sikmir ];
22 inherit (lazarus.meta) license platforms;
23 };
24}