Skip to content

Commit 46689d5

Browse files
authored
libqt5pas,lazarus-qt: 3.2-0 -> 3.6-0, init Qt6 variants (NixOS#368201)
2 parents 67bdaab + c39894d commit 46689d5

File tree

13 files changed

+87
-68
lines changed

13 files changed

+87
-68
lines changed

pkgs/applications/editors/cudatext/default.nix

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
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

pkgs/by-name/do/doublecmd/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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}";

pkgs/by-name/la/lazpaint/package.nix

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
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 \

pkgs/by-name/pe/peazip/package.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
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}";

pkgs/by-name/ya/yandex-browser/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
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

pkgs/development/compilers/fpc/lazarus.nix

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
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

2929
let
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.
@@ -43,14 +43,15 @@ let
4343
)
4444
);
4545

46+
qtVersion = lib.versions.major qtbase.version;
4647
in
4748
stdenv.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

pkgs/development/compilers/fpc/libqt5pas.nix

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
}

pkgs/tools/graphics/goverlay/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
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

pkgs/top-level/aliases.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)