Loading pkgs/development/python-modules/pyside6/default.nix +9 −1 Original line number Diff line number Diff line { lib, stdenv, fetchpatch, cmake, cups, ninja, Loading Loading @@ -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. Loading pkgs/development/python-modules/pyside6/fix-installing-docs.patch 0 → 100644 +25 −0 Original line number Diff line number Diff line --- 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}...") No newline at end of file pkgs/development/python-modules/shiboken6/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -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 ]; Loading pkgs/kde/gear/akonadi-search/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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"; Loading pkgs/kde/gear/angelfish/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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 { Loading Loading
pkgs/development/python-modules/pyside6/default.nix +9 −1 Original line number Diff line number Diff line { lib, stdenv, fetchpatch, cmake, cups, ninja, Loading Loading @@ -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. Loading
pkgs/development/python-modules/pyside6/fix-installing-docs.patch 0 → 100644 +25 −0 Original line number Diff line number Diff line --- 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}...") No newline at end of file
pkgs/development/python-modules/shiboken6/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -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 ]; Loading
pkgs/kde/gear/akonadi-search/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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"; Loading
pkgs/kde/gear/angelfish/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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 { Loading