File tree Expand file tree Collapse file tree 13 files changed +87
-68
lines changed
applications/editors/cudatext
development/compilers/fpc Expand file tree Collapse file tree 13 files changed +87
-68
lines changed Original file line number Diff line number Diff line change 1717, python3
1818
1919# Qt5
20- , libqt5pas
21- , qt5
20+ , libsForQt5
2221
2322, widgetset ? "qt5"
2423# See https://github.com/Alexey-T/CudaText-lexers
@@ -59,13 +58,13 @@ stdenv.mkDerivation rec {
5958 '' ;
6059
6160 nativeBuildInputs = [ lazarus fpc ]
62- ++ lib . optional ( widgetset == "qt5" ) qt5 . wrapQtAppsHook ;
61+ ++ lib . optional ( widgetset == "qt5" ) libsForQt5 . wrapQtAppsHook ;
6362
6463 buildInputs = [ libX11 ]
6564 ++ lib . optionals ( lib . hasPrefix "gtk" widgetset ) [ pango cairo glib atk gdk-pixbuf ]
6665 ++ lib . optional ( widgetset == "gtk2" ) gtk2
6766 ++ lib . optional ( widgetset == "gtk3" ) gtk3
68- ++ lib . optional ( widgetset == "qt5" ) libqt5pas ;
67+ ++ lib . optional ( widgetset == "qt5" ) libsForQt5 . libqtpas ;
6968
7069 NIX_LDFLAGS = "--as-needed -rpath ${ lib . makeLibraryPath buildInputs } " ;
7170
Original file line number Diff line number Diff line change 88 glib ,
99 lazarus ,
1010 libX11 ,
11- libqt5pas ,
11+ libqtpas ,
1212 wrapQtAppsHook ,
1313} :
1414
@@ -34,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
3434 dbus
3535 glib
3636 libX11
37- libqt5pas
37+ libqtpas
3838 ] ;
3939
4040 env . NIX_LDFLAGS = "--as-needed -rpath ${ lib . makeLibraryPath finalAttrs . buildInputs } " ;
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 ,
9- libqt5pas ,
109 xorg ,
1110 python3 ,
1211} :
@@ -37,15 +36,15 @@ stdenv.mkDerivation rec {
3736 } ;
3837
3938 nativeBuildInputs = [
40- lazarus-qt
39+ lazarus-qt5
4140 fpc
4241 libsForQt5 . wrapQtAppsHook
4342 autoPatchelfHook
4443 ] ;
4544
46- buildInputs = [
47- libsForQt5 . qtbase
48- libqt5pas
45+ buildInputs = with libsForQt5 ; [
46+ qtbase
47+ libqtpas
4948 ] ;
5049
5150 runtimeDependencies = [
@@ -63,7 +62,7 @@ stdenv.mkDerivation rec {
6362 cp -r --no-preserve=mode ${ bgrabitmap } bgrabitmap
6463 cp -r --no-preserve=mode ${ bgracontrols } bgracontrols
6564
66- lazbuild --lazarusdir=${ lazarus-qt } /share/lazarus \
65+ lazbuild --lazarusdir=${ lazarus-qt5 } /share/lazarus \
6766 --build-mode=ReleaseQt5 \
6867 bgrabitmap/bgrabitmap/bgrabitmappack.lpk \
6968 bgracontrols/bgracontrols.lpk \
Original file line number Diff line number Diff line change 66 fpc ,
77 lazarus ,
88 xorg ,
9- libqt5pas ,
109 runCommand ,
1110 _7zz ,
1211 archiver ,
@@ -41,7 +40,7 @@ stdenv.mkDerivation rec {
4140
4241 buildInputs = [
4342 xorg . libX11
44- libqt5pas
43+ libsForQt5 . libqtpas
4544 ] ;
4645
4746 NIX_LDFLAGS = "--as-needed -rpath ${ lib . makeLibraryPath buildInputs } " ;
Original file line number Diff line number Diff line change 4646, systemd
4747, at-spi2-atk
4848, at-spi2-core
49- , libqt5pas
49+ , libsForQt5
5050, qt6
5151, vivaldi-ffmpeg-codecs
5252, edition ? "stable"
@@ -130,7 +130,7 @@ in stdenv.mkDerivation rec {
130130 nss
131131 pango
132132 ( lib . getLib stdenv . cc . cc )
133- libqt5pas
133+ libsForQt5 . libqtpas
134134 qt6 . qtbase
135135 ] ;
136136
Original file line number Diff line number Diff line change 1919 binutils ,
2020 withQt ? false ,
2121 qtbase ? null ,
22- libqt5pas ? null ,
22+ libqtpas ? null ,
2323 wrapQtAppsHook ? null ,
2424} :
2525
2626# TODO:
2727# 1. the build date is embedded in the binary through `$I %DATE%` - we should dump that
2828
2929let
30- version = "3.2 -0" ;
30+ version = "3.6 -0" ;
3131
3232 # as of 2.0.10 a suffix is being added. That may or may not disappear and then
3333 # come back, so just leave this here.
4343 )
4444 ) ;
4545
46+ qtVersion = lib . versions . major qtbase . version ;
4647in
4748stdenv . mkDerivation rec {
4849 pname = "lazarus-${ LCL_PLATFORM } " ;
4950 inherit version ;
5051
5152 src = fetchurl {
5253 url = "mirror://sourceforge/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20${ majorMinorPatch version } /lazarus-${ version } .tar.gz" ;
53- sha256 = "69f43f0a10b9e09deea5f35094c73b84464b82d3f40d8a2fcfcb5a5ab03c6edf " ;
54+ hash = "sha256-5luQNn9jvxfLe/NfW+acnvcEyklOkdjGfQcuM3P6sIU= " ;
5455 } ;
5556
5657 postPatch = ''
@@ -73,7 +74,7 @@ stdenv.mkDerivation rec {
7374 gdk-pixbuf
7475 ]
7576 ++ lib . optionals withQt [
76- libqt5pas
77+ libqtpas
7778 qtbase
7879 ] ;
7980
@@ -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 [
@@ -113,8 +114,8 @@ stdenv.mkDerivation rec {
113114 "-lpango-1.0"
114115 ]
115116 ++ lib . optionals withQt [
116- "-L${ lib . getLib libqt5pas } /lib"
117- "-lQt5Pas "
117+ "-L${ lib . getLib libqtpas } /lib"
118+ "-lQt ${ qtVersion } Pas "
118119 ]
119120 ) ;
120121
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ stdenv ,
3+ lib ,
4+ lazarus ,
5+ qmake ,
6+ qtbase ,
7+ # Not in Qt6 anymore
8+ qtx11extras ? null ,
9+ } :
10+
11+ let
12+ qtVersion = lib . versions . major qtbase . version ;
13+ in
14+ stdenv . mkDerivation {
15+ pname = "libqtpas" ;
16+ inherit ( lazarus ) version src ;
17+
18+ sourceRoot = "lazarus/lcl/interfaces/qt${ qtVersion } /cbindings" ;
19+
20+ postPatch = ''
21+ substituteInPlace Qt${ qtVersion } Pas.pro \
22+ --replace 'target.path = $$[QT_INSTALL_LIBS]' "target.path = $out/lib"
23+ '' ;
24+
25+ nativeBuildInputs = [ qmake ] ;
26+
27+ buildInputs =
28+ [
29+ qtbase
30+ ]
31+ ++ lib . optionals ( qtVersion == "5" ) [
32+ qtx11extras
33+ ] ;
34+
35+ dontWrapQtApps = true ;
36+
37+ meta = with lib ; {
38+ description = "Free Pascal Qt${ qtVersion } binding library" ;
39+ homepage =
40+ "https://wiki.freepascal.org/Qt${ qtVersion } _Interface"
41+ + lib . optionalString ( qtVersion == "5" ) "#libqt5pas" ;
42+ maintainers = with maintainers ; [ sikmir ] ;
43+ inherit ( lazarus . meta ) license platforms ;
44+ } ;
45+ }
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 ,
1212 libGLU ,
13- libqt5pas ,
13+ libqtpas ,
1414 libX11 ,
1515 coreutils ,
1616 git ,
@@ -69,23 +69,23 @@ stdenv.mkDerivation rec {
6969
7070 nativeBuildInputs = [
7171 fpc
72- lazarus-qt
72+ lazarus-qt5
7373 wrapQtAppsHook
7474 ] ;
7575
7676 buildInputs = [
7777 breeze-qt5
7878 libGL
7979 libGLU
80- libqt5pas
80+ libqtpas
8181 libX11
8282 ] ;
8383
8484 NIX_LDFLAGS = "-lGLU -rpath ${ lib . makeLibraryPath buildInputs } " ;
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
@@ -664,6 +665,7 @@ mapAliases {
664665 liboop = throw "liboop has been removed as it is unmaintained upstream." ; # Added 2024-08-14
665666 libpqxx_6 = throw "libpqxx_6 has been removed, please use libpqxx" ; # Added 2024-10-02
666667 libpulseaudio-vanilla = libpulseaudio ; # Added 2022-04-20
668+ libqt5pas = libsForQt5 . libqtpas ; # Added 2024-12-25
667669 libquotient = libsForQt5 . libquotient ; # Added 2023-11-11
668670 librarian-puppet-go = throw "'librarian-puppet-go' has been removed, as it's upstream is unmaintained" ; # Added 2024-06-10
669671 librdf = throw "'librdf' has been renamed to/replaced by 'lrdf'" ; # Converted to throw 2024-10-17
You can’t perform that action at this time.
0 commit comments