diff --git a/pkgs/applications/kde/default.nix b/pkgs/applications/kde/default.nix index c390e004c8cc..cb661d438cf6 100644 --- a/pkgs/applications/kde/default.nix +++ b/pkgs/applications/kde/default.nix @@ -122,6 +122,11 @@ let kdenlive = callPackage ./kdenlive {}; kdepim-runtime = callPackage ./kdepim-runtime {}; kdepim-addons = callPackage ./kdepim-addons.nix {}; + kdevelop-pg-qt = callPackage ./kdevelop/kdevelop-pg-qt.nix {}; + kdevelop-unwrapped = callPackage ./kdevelop/kdevelop.nix {}; + kdev-php = callPackage ./kdevelop/kdev-php.nix {}; + kdev-python = callPackage ./kdevelop/kdev-python.nix {}; + kdevelop = callPackage ./kdevelop/wrapper.nix {}; kdf = callPackage ./kdf.nix {}; kdialog = callPackage ./kdialog.nix {}; kdiamond = callPackage ./kdiamond.nix {}; diff --git a/pkgs/applications/editors/kdevelop5/kdev-php.nix b/pkgs/applications/kde/kdevelop/kdev-php.nix similarity index 54% rename from pkgs/applications/editors/kdevelop5/kdev-php.nix rename to pkgs/applications/kde/kdevelop/kdev-php.nix index 8308830efccc..46c4af8c1c07 100644 --- a/pkgs/applications/editors/kdevelop5/kdev-php.nix +++ b/pkgs/applications/kde/kdevelop/kdev-php.nix @@ -1,13 +1,7 @@ -{ stdenv, lib, fetchurl, cmake, extra-cmake-modules, threadweaver, ktexteditor, kdevelop-unwrapped, kdevelop-pg-qt }: +{ mkDerivation, lib, cmake, extra-cmake-modules, threadweaver, ktexteditor, kdevelop-unwrapped, kdevelop-pg-qt }: -stdenv.mkDerivation rec { +mkDerivation rec { pname = "kdev-php"; - version = "5.6.2"; - - src = fetchurl { - url = "mirror://kde/stable/kdevelop/${version}/src/${pname}-${version}.tar.xz"; - hash = "sha256-8Qg9rsK4x1LeGgRB0Pn3InSx4tKccjAF7Xjc+Lpxfgw="; - }; nativeBuildInputs = [ cmake extra-cmake-modules ]; buildInputs = [ kdevelop-pg-qt threadweaver ktexteditor kdevelop-unwrapped ]; diff --git a/pkgs/applications/editors/kdevelop5/kdev-python.nix b/pkgs/applications/kde/kdevelop/kdev-python.nix similarity index 58% rename from pkgs/applications/editors/kdevelop5/kdev-python.nix rename to pkgs/applications/kde/kdevelop/kdev-python.nix index 374b4224ca6b..66335429bdd1 100644 --- a/pkgs/applications/editors/kdevelop5/kdev-python.nix +++ b/pkgs/applications/kde/kdevelop/kdev-python.nix @@ -1,13 +1,13 @@ -{ stdenv, lib, fetchurl, cmake, extra-cmake-modules, threadweaver, ktexteditor, kdevelop-unwrapped, python }: - -stdenv.mkDerivation rec { +{ mkDerivation, lib, cmake, extra-cmake-modules +, threadweaver, ktexteditor, kdevelop-unwrapped, python39 +}: +let + # FIXME: stick with python 3.9 until MR supporting 3.10 is ready: + # https://invent.kde.org/kdevelop/kdev-python/-/merge_requests/16 + python = python39; +in +mkDerivation rec { pname = "kdev-python"; - version = "5.6.2"; - - src = fetchurl { - url = "mirror://kde/stable/kdevelop/${version}/src/${pname}-${version}.tar.xz"; - hash = "sha256-IPm3cblhJi3tmGpPMrjSWa2fe8SLsp6sCl1YU74dkX8="; - }; cmakeFlags = [ "-DPYTHON_EXECUTABLE=${python}/bin/python" diff --git a/pkgs/applications/editors/kdevelop5/kdevelop-pg-qt.nix b/pkgs/applications/kde/kdevelop/kdevelop-pg-qt.nix similarity index 87% rename from pkgs/applications/editors/kdevelop5/kdevelop-pg-qt.nix rename to pkgs/applications/kde/kdevelop/kdevelop-pg-qt.nix index e1478ef6a03c..f96e8cf6b677 100644 --- a/pkgs/applications/editors/kdevelop5/kdevelop-pg-qt.nix +++ b/pkgs/applications/kde/kdevelop/kdevelop-pg-qt.nix @@ -1,15 +1,11 @@ { lib, stdenv, fetchurl, cmake, pkg-config, extra-cmake-modules, qtbase }: -let +stdenv.mkDerivation rec { pname = "kdevelop-pg-qt"; version = "2.2.1"; -in -stdenv.mkDerivation rec { - name = "${pname}-${version}"; - src = fetchurl { - url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz"; + url = "mirror://kde/stable/${pname}/${version}/src/${pname}-${version}.tar.xz"; sha256 = "0ay6m6j6zgrbcm48f14bass83bk4w5qnx76xihc05p69i9w32ff1"; }; diff --git a/pkgs/applications/editors/kdevelop5/kdevelop.nix b/pkgs/applications/kde/kdevelop/kdevelop.nix similarity index 87% rename from pkgs/applications/editors/kdevelop5/kdevelop.nix rename to pkgs/applications/kde/kdevelop/kdevelop.nix index 37ede94fa193..4e7f576398e5 100644 --- a/pkgs/applications/editors/kdevelop5/kdevelop.nix +++ b/pkgs/applications/kde/kdevelop/kdevelop.nix @@ -1,21 +1,18 @@ - -{ mkDerivation, lib, fetchurl, cmake, gettext, pkg-config, extra-cmake-modules +{ mkDerivation, lib, cmake, gettext, pkg-config, extra-cmake-modules , qtquickcontrols, qtwebkit, qttools, kde-cli-tools, qtbase , kconfig, kdeclarative, kdoctools, kiconthemes, ki18n, kitemmodels, kitemviews , kjobwidgets, kcmutils, kio, knewstuff, knotifyconfig, kparts, ktexteditor , threadweaver, kxmlgui, kwindowsystem, grantlee, kcrash, karchive, kguiaddons , plasma-framework, krunner, kdevelop-pg-qt, shared-mime-info, libkomparediff2 -, libksysguard, konsole, llvmPackages, makeWrapper, kpurpose, boost +, libksysguard, konsole, llvmPackages_13, makeWrapper, kpurpose, boost +, qtwebengine, cppcheck }: +let + llvmPackages = llvmPackages_13; +in mkDerivation rec { pname = "kdevelop"; - version = "5.6.2"; - - src = fetchurl { - url = "mirror://kde/stable/${pname}/${version}/src/${pname}-${version}.tar.xz"; - sha256 = "sha256-D4a8P+U/dhwePj91RFd6DEFDO+i/8xDPLnKfdvQ2O/Y="; - }; nativeBuildInputs = [ cmake gettext pkg-config extra-cmake-modules makeWrapper @@ -32,6 +29,7 @@ mkDerivation rec { kjobwidgets kcmutils kio knewstuff knotifyconfig kparts ktexteditor threadweaver kxmlgui kwindowsystem grantlee plasma-framework krunner shared-mime-info libksysguard konsole kcrash karchive kguiaddons kpurpose + cppcheck qtwebengine ]; # https://cgit.kde.org/kdevelop.git/commit/?id=716372ae2e8dff9c51e94d33443536786e4bd85b diff --git a/pkgs/applications/editors/kdevelop5/wrapper.nix b/pkgs/applications/kde/kdevelop/wrapper.nix similarity index 100% rename from pkgs/applications/editors/kdevelop5/wrapper.nix rename to pkgs/applications/kde/kdevelop/wrapper.nix diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index bd19a8d3059d..f1a7cce4e360 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1646,7 +1646,8 @@ mapAliases ({ ffmpegthumbs filelight granatier gwenview k3b kactivitymanagerd kaddressbook kalendar kalzium kapman kapptemplate kate katomic kblackbox kblocks kbounce kcachegrind kcalc kcharselect kcolorchooser kde-cli-tools kde-gtk-config - kdenlive kdeplasma-addons kdf kdialog kdiamond keditbookmarks kfind kfloppy + kdenlive kdeplasma-addons kdevelop-pg-qt kdevelop-unwrapped kdev-php + kdev-python kdevelop kdf kdialog kdiamond keditbookmarks kfind kfloppy kgamma5 kget kgpg khelpcenter kig kigo killbots kinfocenter kitinerary kleopatra klettres klines kmag kmail kmenuedit kmines kmix kmplot knavalbattle knetwalk knights kollision kolourpaint kompare konsole kontact diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4694c54a65b9..accc422b8a6a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27742,19 +27742,6 @@ with pkgs; kdeltachat = libsForQt5.callPackage ../applications/networking/instant-messengers/kdeltachat { }; - kdevelop-pg-qt = libsForQt5.callPackage ../applications/editors/kdevelop5/kdevelop-pg-qt.nix { }; - - kdevelop-unwrapped = libsForQt5.callPackage ../applications/editors/kdevelop5/kdevelop.nix { - llvmPackages = llvmPackages_10; - }; - - kdev-php = libsForQt5.callPackage ../applications/editors/kdevelop5/kdev-php.nix { }; - kdev-python = libsForQt5.callPackage ../applications/editors/kdevelop5/kdev-python.nix { - python = python3; - }; - - kdevelop = libsForQt5.callPackage ../applications/editors/kdevelop5/wrapper.nix { }; - kepubify = callPackage ../tools/misc/kepubify { }; kermit = callPackage ../tools/misc/kermit { };