Skip to content

Commit

Permalink
kdePackages: Gear 24.08.2 -> 24.08.3 (NixOS#354436)
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 authored Nov 8, 2024
2 parents d5a0dbe + 28335ee commit c9ad570
Show file tree
Hide file tree
Showing 8 changed files with 791 additions and 768 deletions.
10 changes: 9 additions & 1 deletion pkgs/development/python-modules/pyside6/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
stdenv,
fetchpatch,
cmake,
cups,
ninja,
Expand Down Expand Up @@ -57,7 +58,14 @@ stdenv.mkDerivation (finalAttrs: {

inherit (shiboken6) version src;

sourceRoot = "pyside-setup-everywhere-src-${finalAttrs.version}/sources/pyside6";
sourceRoot = "pyside-setup-everywhere-src-6.8.0/sources/pyside6";

patches = [
# Manual backport of https://code.qt.io/cgit/pyside/pyside-setup.git/patch/?id=cacc9c5803a6dec820dd46211a836453183c8dab
# to fit our structure.
# FIXME: remove for 6.8.1
./fix-installing-docs.patch
];

# cmake/Macros/PySideModules.cmake supposes that all Qt frameworks on macOS
# reside in the same directory as QtCore.framework, which is not true for Nix.
Expand Down
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/pyside6/fix-installing-docs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--- a/cmake/Macros/PySideModules.cmake
+++ b/cmake/Macros/PySideModules.cmake
@@ -176,6 +176,14 @@ macro(create_pyside_module)
set(${module_NAME}_glue_dependency ${${module_NAME}_glue})
endif()

+ # Install module doc files.
+ set(${module_NAME}_doc "${CMAKE_CURRENT_SOURCE_DIR}/../doc/${lower_module_name}.rst")
+ set(${module_name}_doc_dependency "")
+ if(EXISTS ${${module_NAME}_doc})
+ install(FILES ${${module_NAME}_doc} DESTINATION share/PySide6${pyside6_SUFFIX}/doc)
+ set(${module_NAME}_doc_dependency ${${module_NAME}_doc})
+ endif()
+
# Install standalone glue files into typesystems subfolder, so that the resolved relative
# paths remain correct.
if (module_GLUE_SOURCES)
@@ -245,6 +253,7 @@ macro(create_pyside_module)
DEPENDS ${total_type_system_files}
${module_GLUE_SOURCES}
${${module_NAME}_glue_dependency}
+ ${${module_NAME}_doc_dependency}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Running generator for ${module_NAME}...")

8 changes: 4 additions & 4 deletions pkgs/development/python-modules/shiboken6/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ let
in
stdenv'.mkDerivation (finalAttrs: {
pname = "shiboken6";
version = "6.8";
version = "6.8.0.2";

src = fetchurl {
# https://download.qt.io/official_releases/QtForPython/shiboken6/
# FIXME: inconsistent version numbers in directory name and tarball?
url = "mirror://qt/official_releases/QtForPython/shiboken6/PySide6-${finalAttrs.version}.0-src/pyside-setup-everywhere-src-${finalAttrs.version}.tar.xz";
hash = "sha256-XAWtOufnJ51tudyUpG6woF/Qk1NzCfdDnDhnG9clUZA=";
url = "mirror://qt/official_releases/QtForPython/shiboken6/PySide6-6.8.0.2-src/pyside-setup-everywhere-src-6.8.0.tar.xz";
hash = "sha256-Ghohmo8yfjQNJYJ1+tOp8mG48EvFcEF0fnPdatJStOE=";
};

sourceRoot = "pyside-setup-everywhere-src-${finalAttrs.version}/sources/shiboken6";
sourceRoot = "pyside-setup-everywhere-src-6.8.0/sources/shiboken6";

patches = [ ./fix-include-qt-headers.patch ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/kde/gear/akonadi-search/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
cargo,
rustc,
# provided as callPackage input to enable easier overrides through overlays
cargoHash ? "sha256-E+QaicYnFF79FDIhhvuEPQLikiLk5oKIjvLA132RUZo=",
cargoHash ? "sha256-9cwNQSw0ueWyyL/qgWXXqIRsi4Lk/DX48CIbvQFNgP8=",
}:
mkKdeDerivation rec {
pname = "akonadi-search";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/kde/gear/angelfish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
cargo,
rustc,
# provided as callPackage input to enable easier overrides through overlays
cargoHash ? "sha256-B3M5tkmftR4nFbPAQqJDvvPidVGxq/8zH0KRgpBR92w=",
cargoHash ? "sha256-gE3wrRI8TaiA6LNqyrpEuw8ALnprGjzWQduCckG1Eo0=",
qcoro,
}:
mkKdeDerivation rec {
Expand Down
10 changes: 0 additions & 10 deletions pkgs/kde/gear/kalzium/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
mkKdeDerivation,
fetchpatch,
pkg-config,
ocaml,
eigen,
Expand All @@ -11,15 +10,6 @@
mkKdeDerivation {
pname = "kalzium";

patches = [
# Fix build with Qt 6.8
# FIXME: remove in next major update
(fetchpatch {
url = "https://invent.kde.org/education/kalzium/-/commit/557d9bc96636f413430d0789cbf775915fc0dc45.patch";
hash = "sha256-KDCT/COqk7OTuF8pN7qrRrIPRU4PSGm+efpCDGbtZwA=";
})
];

# FIXME: look into how to make it find libfacile
extraNativeBuildInputs = [
pkg-config
Expand Down
2 changes: 1 addition & 1 deletion pkgs/kde/gear/kdepim-addons/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
corrosion,
alpaka,
# provided as callPackage input to enable easier overrides through overlays
cargoHash ? "sha256-t7izRAYjuCYA0YMZaCnvwbVo2UvfTTvdlYUd69T6w/Q=",
cargoHash ? "sha256-2t4i7lTJxVNjsU5eO6svadZBIerSyXt6BMScpEl119s=",
}:
mkKdeDerivation rec {
pname = "kdepim-addons";
Expand Down
Loading

0 comments on commit c9ad570

Please sign in to comment.