Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
923 B
Nix
45 lines
923 B
Nix
{
|
|
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 = with lib; {
|
|
description = "Free Pascal Qt${qtVersion} binding library";
|
|
homepage =
|
|
"https://wiki.freepascal.org/Qt${qtVersion}_Interface"
|
|
+ lib.optionalString (qtVersion == "5") "#libqt5pas";
|
|
maintainers = with maintainers; [ sikmir ];
|
|
inherit (lazarus.meta) license platforms;
|
|
};
|
|
}
|