Skip to content

Commit

Permalink
treewide: clear out remaining qt5 conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Mar 17, 2023
1 parent 509d8ca commit a5a292c
Show file tree
Hide file tree
Showing 32 changed files with 23 additions and 125 deletions.
3 changes: 1 addition & 2 deletions pkgs/applications/kde/akonadi/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
mkDerivation, lib, kdepimTeam,
extra-cmake-modules, shared-mime-info, qtbase, accounts-qt,
extra-cmake-modules, shared-mime-info, accounts-qt,
boost, kaccounts-integration, kcompletion, kconfigwidgets, kcrash, kdbusaddons,
kdesignerplugin, ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mariadb,
postgresql, qttools, signond, xz,
Expand All @@ -17,7 +17,6 @@ mkDerivation {
meta = {
license = [ lib.licenses.lgpl21 ];
maintainers = kdepimTeam;
broken = lib.versionOlder qtbase.version "5.13";
};
patches = [
./0001-akonadi-paths.patch
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/kde/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ still shows most of the available features is in `./gwenview.nix`.
}:

let
minQtVersion = "5.15";
broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;

mirror = "mirror://kde";
srcs = import ./srcs.nix { inherit fetchurl mirror; };

Expand All @@ -53,7 +50,6 @@ let
meta // {
homepage = meta.homepage or "http://www.kde.org";
platforms = meta.platforms or lib.platforms.linux;
broken = meta.broken or broken;
};
});

Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/kde/dolphin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
kcompletion, kconfig, kcoreaddons, kdbusaddons,
kfilemetadata, ki18n, kiconthemes, kinit, kio, knewstuff, knotifications,
kparts, ktexteditor, kwindowsystem, phonon, solid,
wayland, qtbase, qtwayland
wayland, qtwayland
}:

mkDerivation {
Expand All @@ -15,7 +15,6 @@ mkDerivation {
description = "KDE file manager";
license = with lib.licenses; [ gpl2Plus fdl12Plus ];
maintainers = [ lib.maintainers.ttuegel ];
broken = lib.versionOlder qtbase.version "5.14";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedUserEnvPkgs = [ baloo ];
Expand Down
4 changes: 1 addition & 3 deletions pkgs/applications/kde/elisa.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
, lib
, extra-cmake-modules
, kdoctools
, qtbase
, qtmultimedia
, qtquickcontrols2
, qtwebsockets
Expand All @@ -17,7 +16,7 @@
, libvlc
}:

mkDerivation rec {
mkDerivation {
pname = "elisa";

outputs = [ "out" "dev" ];
Expand Down Expand Up @@ -45,6 +44,5 @@ mkDerivation rec {
description = "A simple media player for KDE";
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
broken = lib.versionOlder qtbase.version "5.15";
};
}
2 changes: 0 additions & 2 deletions pkgs/applications/kde/filelight.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
, kio
, kparts
, kxmlgui
, qtbase
, qtscript
, solid
, qtquickcontrols2
Expand All @@ -21,7 +20,6 @@ mkDerivation {
homepage = "https://apps.kde.org/filelight/";
license = with lib.licenses; [ gpl2 ];
maintainers = with lib.maintainers; [ fridh vcunat ];
broken = lib.versionOlder qtbase.version "5.13";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [
Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/kde/grantleetheme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ mkDerivation {
meta = {
license = with lib.licenses; [ gpl2Plus lgpl21Plus fdl12Plus ];
maintainers = kdepimTeam;
broken = lib.versionOlder qtbase.version "5.13.0";
};
output = [ "out" "dev" ];
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/kde/kdebugsettings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extra-cmake-modules, kdoctools,
gettext,
kcoreaddons, kconfig, kdbusaddons, kwidgetsaddons, kitemviews, kcompletion,
qtbase, python3
python3
}:

mkDerivation {
Expand All @@ -13,7 +13,6 @@ mkDerivation {
description = "KDE debug settings";
license = with lib.licenses; [ gpl2 ];
maintainers = [ ];
broken = lib.versionOlder qtbase.version "5.13";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/kde/kdenetwork-filesharing.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
mkDerivation, lib,
extra-cmake-modules, kdoctools,
kcoreaddons, kdeclarative, ki18n, kio, kwidgetsaddons, samba, qtbase,
kcoreaddons, kdeclarative, ki18n, kio, kwidgetsaddons, samba,
}:

mkDerivation {
pname = "kdenetwork-filesharing";
meta = {
license = [ lib.licenses.gpl2 lib.licenses.lgpl21 ];
maintainers = [ lib.maintainers.ttuegel ];
broken = lib.versionOlder qtbase.version "5.13";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [ kcoreaddons kdeclarative ki18n kio kwidgetsaddons samba ];
Expand Down
4 changes: 1 addition & 3 deletions pkgs/applications/kde/kirigami-gallery.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
, qtgraphicaleffects
, qtquickcontrols2
, qttools
, qtbase
}:

mkDerivation rec {
mkDerivation {
pname = "kirigami-gallery";

nativeBuildInputs = [ extra-cmake-modules qttools ];
Expand All @@ -26,6 +25,5 @@ mkDerivation rec {
description = "View examples of Kirigami components";
license = licenses.lgpl2;
maintainers = with maintainers; [ shadowrz ];
broken = versionOlder qtbase.version "5.15";
};
}
1 change: 0 additions & 1 deletion pkgs/applications/kde/kmime.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ mkDerivation {
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ kcodecs ki18n qtbase ];
outputs = [ "out" "dev" ];
meta.broken = lib.versionOlder qtbase.version "5.15.0";
}
5 changes: 2 additions & 3 deletions pkgs/applications/kde/konqueror.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, mkDerivation
, extra-cmake-modules, kdoctools
, kinit, kcmutils, khtml, kdesu
, qtbase, qtwebengine, qtx11extras, qtscript, qtwayland
, qtwebengine, qtx11extras, qtscript, qtwayland
}:

mkDerivation {
Expand All @@ -25,7 +25,6 @@ mkDerivation {
homepage = "https://apps.kde.org/konqueror/";
description = "Web browser, file manager and viewer";
license = with lib.licenses; [ gpl2 ];
maintainers = with lib.maintainers; [ ];
broken = lib.versionOlder qtbase.version "5.13";
maintainers = [ ];
};
}
3 changes: 1 addition & 2 deletions pkgs/applications/kde/kpimtextedit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mkDerivation, lib, kdepimTeam,
extra-cmake-modules, kdoctools,
grantlee, kcodecs, kconfigwidgets, kemoticons, ki18n, kiconthemes, kio,
kdesignerplugin, ktextwidgets, sonnet, syntax-highlighting, qtbase, qttools,
kdesignerplugin, ktextwidgets, sonnet, syntax-highlighting, qttools,
qtspeech
}:

Expand All @@ -11,7 +11,6 @@ mkDerivation {
meta = {
license = with lib.licenses; [ gpl2Plus lgpl21Plus fdl12Plus ];
maintainers = kdepimTeam;
broken = lib.versionOlder qtbase.version "5.13.0";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/kde/kpkpass.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ mkDerivation {
meta = {
license = with lib.licenses; [ lgpl21 ];
maintainers = [ lib.maintainers.bkchr ];
broken = lib.versionOlder qtbase.version "5.15";
};
nativeBuildInputs = [ extra-cmake-modules shared-mime-info ];
buildInputs = [ qtbase karchive ];
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/kde/krdc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mkDerivation, lib,
extra-cmake-modules, kdoctools, makeWrapper,
kcmutils, kcompletion, kconfig, kdnssd, knotifyconfig, kwallet, kwidgetsaddons,
kwindowsystem, libvncserver, freerdp, qtbase,
kwindowsystem, libvncserver, freerdp,
}:

mkDerivation {
Expand All @@ -22,6 +22,5 @@ mkDerivation {
license = with licenses; [ gpl2Plus lgpl21Plus fdl12Plus bsd3 ];
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.linux;
broken = lib.versionOlder qtbase.version "5.14";
};
}
3 changes: 1 addition & 2 deletions pkgs/applications/kde/kwave.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ mkDerivation, lib, extra-cmake-modules, kdoctools, qtmultimedia, kcompletion, kconfig
, kcrash, kiconthemes, kio, audiofile, libsamplerate, alsa-lib, libpulseaudio, flac, id3lib
, libogg, libmad, libopus, libvorbis, fftw, librsvg, qtbase }:
, libogg, libmad, libopus, libvorbis, fftw, librsvg }:

mkDerivation {
pname = "kwave";
Expand All @@ -11,7 +11,6 @@ mkDerivation {
maintainers = with maintainers; [ freezeboy ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
broken = lib.versionOlder qtbase.version "5.14";
};
nativeBuildInputs = [
extra-cmake-modules
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/kde/libkgapi.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
mkDerivation, lib, kdepimTeam,
extra-cmake-modules, kdoctools,
qtbase, qtwebengine, kio, kcalendarcore, kcontacts,
qtwebengine, kio, kcalendarcore, kcontacts,
cyrus_sasl
}:

Expand All @@ -10,7 +10,6 @@ mkDerivation {
meta = {
license = with lib.licenses; [ gpl2Plus lgpl21Plus fdl12Plus ];
maintainers = kdepimTeam;
broken = lib.versionOlder qtbase.version "5.14.0";
};
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [ qtwebengine kio kcalendarcore kcontacts cyrus_sasl ];
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/kde/minuet.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ mkDerivation, qtbase
{ mkDerivation
, lib, extra-cmake-modules, gettext, python3
, drumstick, fluidsynth
, kcoreaddons, kcrash, kdoctools
Expand All @@ -12,7 +12,6 @@ mkDerivation {
description = "Music Education Software";
license = with licenses; [ lgpl21 gpl3 ];
maintainers = with maintainers; [ peterhoeg HaoZeke ];
broken = lib.versionOlder qtbase.version "5.14";
};

nativeBuildInputs = [ extra-cmake-modules gettext kdoctools python3 qtdeclarative ];
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/kde/spectacle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, ki18n, xcb-util-cursor
, kconfig, kcoreaddons, kdbusaddons, kdeclarative, kio, kipi-plugins
, knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi
, qtbase, qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
, qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
}:

mkDerivation {
Expand All @@ -23,6 +23,5 @@ mkDerivation {
homepage = "https://apps.kde.org/spectacle/";
description = "Screenshot capture utility";
maintainers = with maintainers; [ ttuegel ];
broken = versionOlder qtbase.version "5.15";
};
}
6 changes: 1 addition & 5 deletions pkgs/applications/maui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ See also `pkgs/applications/kde` as this is what this is based on.
}:

let
minQtVersion = "5.15";
broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;

mirror = "mirror://kde";
srcs = import ./srcs.nix { inherit fetchurl mirror; };

Expand All @@ -51,11 +48,10 @@ let
meta // {
homepage = meta.homepage or "https://mauikit.org/";
platforms = meta.platforms or lib.platforms.linux;
broken = meta.broken or broken;
};
});

packages = self: with self;
packages = self:
let
callPackage = self.newScope {
inherit mkDerivation;
Expand Down
5 changes: 1 addition & 4 deletions pkgs/applications/misc/qsyncthingtray/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ mkDerivation rec {
license = licenses.lgpl3;
maintainers = with maintainers; [ zraexy peterhoeg ];
platforms = platforms.all;
# 0.5.7 segfaults when opening the main panel with qt 5.7 and fails to compile with qt 5.8
# but qt > 5.6 works when only using the native browser
# https://github.com/sieren/QSyncthingTray/issues/223
broken = (builtins.compareVersions qtbase.version "5.7.0" >= 0 && !preferNative) || stdenv.isDarwin;
broken = !preferNative || stdenv.isDarwin;
};
}
6 changes: 1 addition & 5 deletions pkgs/applications/plasma-mobile/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ See also `pkgs/applications/kde` as this is what this is based on.
}:

let
minQtVersion = "5.15";
broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;

mirror = "mirror://kde";
srcs = import ./srcs.nix { inherit fetchurl mirror; };

Expand All @@ -51,11 +48,10 @@ let
meta // {
homepage = meta.homepage or "https://www.plasma-mobile.org/";
platforms = meta.platforms or lib.platforms.linux;
broken = meta.broken or broken;
};
});

packages = self: with self;
packages = self:
let
callPackage = self.newScope {
inherit mkDerivation;
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/science/math/speedcrunch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ mkDerivation rec {
'';
maintainers = with maintainers; [ gebner j0hax ];
inherit (qtbase.meta) platforms;
# works with qt 5.6 and qt 5.8
broken = builtins.compareVersions qtbase.version "5.7.0" == 0 || stdenv.isDarwin;
broken = stdenv.isDarwin;
};
}
1 change: 0 additions & 1 deletion pkgs/applications/video/avidemux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ stdenv.mkDerivation rec {
++ lib.optional withVPX libvpx;

buildCommand = let
qtVersion = "5.${lib.versions.minor qtbase.version}";
wrapWith = makeWrapper: filename:
"${makeWrapper} ${filename} --set ADM_ROOT_DIR $out --prefix LD_LIBRARY_PATH : ${libXext}/lib";
wrapQtApp = wrapWith "wrapQtApp";
Expand Down
3 changes: 0 additions & 3 deletions pkgs/desktops/plasma-5/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
}:

let
minQtVersion = "5.15";
broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;
maintainers = with lib.maintainers; [ ttuegel nyanloutre ];
license = with lib.licenses; [
lgpl21Plus
Expand Down Expand Up @@ -107,7 +105,6 @@ let
license = meta.license or license;
maintainers = (meta.maintainers or [ ]) ++ maintainers;
platforms = meta.platforms or lib.platforms.linux;
broken = meta.broken or broken;
};
in
qtStdenv.mkDerivation (args // {
Expand Down
Loading

0 comments on commit a5a292c

Please sign in to comment.