File tree Expand file tree Collapse file tree 5 files changed +16
-9
lines changed
development/compilers/fpc Expand file tree Collapse file tree 5 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 stdenv ,
44 fetchFromGitHub ,
5- lazarus-qt ,
5+ lazarus-qt5 ,
66 fpc ,
77 autoPatchelfHook ,
88 libsForQt5 ,
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
3636 } ;
3737
3838 nativeBuildInputs = [
39- lazarus-qt
39+ lazarus-qt5
4040 fpc
4141 libsForQt5 . wrapQtAppsHook
4242 autoPatchelfHook
@@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
6262 cp -r --no-preserve=mode ${ bgrabitmap } bgrabitmap
6363 cp -r --no-preserve=mode ${ bgracontrols } bgracontrols
6464
65- lazbuild --lazarusdir=${ lazarus-qt } /share/lazarus \
65+ lazbuild --lazarusdir=${ lazarus-qt5 } /share/lazarus \
6666 --build-mode=ReleaseQt5 \
6767 bgrabitmap/bgrabitmap/bgrabitmappack.lpk \
6868 bgracontrols/bgracontrols.lpk \
Original file line number Diff line number Diff line change 4343 )
4444 ) ;
4545
46+ qtVersion = lib . versions . major qtbase . version ;
4647in
4748stdenv . mkDerivation rec {
4849 pname = "lazarus-${ LCL_PLATFORM } " ;
@@ -94,7 +95,7 @@ stdenv.mkDerivation rec {
9495 "bigide"
9596 ] ;
9697
97- LCL_PLATFORM = if withQt then "qt5 " else "gtk2" ;
98+ LCL_PLATFORM = if withQt then "qt ${ qtVersion } " else "gtk2" ;
9899
99100 NIX_LDFLAGS = lib . concatStringsSep " " (
100101 [
@@ -114,7 +115,7 @@ stdenv.mkDerivation rec {
114115 ]
115116 ++ lib . optionals withQt [
116117 "-L${ lib . getLib libqtpas } /lib"
117- "-lQt5Pas "
118+ "-lQt ${ qtVersion } Pas "
118119 ]
119120 ) ;
120121
Original file line number Diff line number Diff line change 55 stdenv ,
66 fetchFromGitHub ,
77 fpc ,
8- lazarus-qt ,
8+ lazarus-qt5 ,
99 wrapQtAppsHook ,
1010 breeze-qt5 ,
1111 libGL ,
@@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
6969
7070 nativeBuildInputs = [
7171 fpc
72- lazarus-qt
72+ lazarus-qt5
7373 wrapQtAppsHook
7474 ] ;
7575
@@ -85,7 +85,7 @@ stdenv.mkDerivation rec {
8585
8686 buildPhase = ''
8787 runHook preBuild
88- HOME=$(mktemp -d) lazbuild --lazarusdir=${ lazarus-qt } /share/lazarus -B goverlay.lpi
88+ HOME=$(mktemp -d) lazbuild --lazarusdir=${ lazarus-qt5 } /share/lazarus -B goverlay.lpi
8989 runHook postBuild
9090 '' ;
9191
Original file line number Diff line number Diff line change @@ -633,6 +633,7 @@ mapAliases {
633633 LASzip2 = laszip_2 ; # Added 2024-06-12
634634 latencytop = throw "'latencytop' has been removed due to lack of maintenance upstream." ; # Added 2024-12-04
635635 latinmodern-math = lmmath ;
636+ lazarus-qt = lazarus-qt5 ; # Added 2024-12-25
636637 leafpad = throw "'leafpad' has been removed due to lack of maintenance upstream. Consider using 'xfce.mousepad' instead" ; # Added 2024-10-19
637638 ledger_agent = ledger-agent ; # Added 2024-01-07
638639 lfs = dysk ; # Added 2023-07-03
Original file line number Diff line number Diff line change @@ -6525,7 +6525,12 @@ with pkgs;
65256525 fpc = fpc;
65266526 };
65276527
6528- lazarus-qt = libsForQt5.callPackage ../development/compilers/fpc/lazarus.nix {
6528+ lazarus-qt5 = libsForQt5.callPackage ../development/compilers/fpc/lazarus.nix {
6529+ fpc = fpc;
6530+ withQt = true;
6531+ };
6532+
6533+ lazarus-qt6 = qt6Packages.callPackage ../development/compilers/fpc/lazarus.nix {
65296534 fpc = fpc;
65306535 withQt = true;
65316536 };
You can’t perform that action at this time.
0 commit comments