transgui: fix build with lazarus 4.0

This commit is contained in:
Nikolay Korotkiy 2025-05-17 23:14:29 +04:00
parent 4706af6e47
commit 3835d83786
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -55,6 +55,9 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace restranslator.pas --replace /usr/ $out/
# Fix build with lazarus 4.0, https://github.com/transmission-remote-gui/transgui/issues/1486
substituteInPlace main.pas --replace-warn "h <> INVALID_HANDLE_VALUE" "h >= 0"
'';
preBuild = ''