Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #500 from imincik/weekly-update-2024.26
Browse files Browse the repository at this point in the history
pkgs: weekly update (weekly-update-2024.26)
  • Loading branch information
imincik authored Jun 27, 2024
2 parents 7c962b9 + 11f8b37 commit 47cd8ff
Show file tree
Hide file tree
Showing 10 changed files with 375 additions and 43 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@

qgis-ltr = pkgs.callPackage ./pkgs/qgis/ltr.nix { qgis-ltr-unwrapped = qgis-ltr-unwrapped; };

# QGIS-NEXT
qgis-next-unwrapped = pkgs.libsForQt5.callPackage ./pkgs/qgis/unwrapped-3_38.nix {
inherit geos gdal libspatialindex libspatialite pdal proj;

python3 = qgis-python;
withGrass = false;
};

qgis-next = pkgs.callPackage ./pkgs/qgis/3_38.nix { qgis-unwrapped = qgis-next-unwrapped; };

# QGIS plugins
qgis-plugins =
let
Expand Down Expand Up @@ -313,6 +323,8 @@
qgis-unwrapped
qgis-ltr
qgis-ltr-unwrapped
qgis-next
qgis-next-unwrapped

# Meta packages
all-packages
Expand Down
4 changes: 2 additions & 2 deletions pkgs/gdal/master-rev.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
rev = "a49c3d1";
hash = "sha256-6glRv+Xtz5naR+rSkBE9q4K9NoOYMajWM7j5g7rjhRM=";
rev = "d6a7db5";
hash = "sha256-ZUhYNpQSSTv0nDHRdWCjtQTxmCZsr74QUcqgtz/I/kc=";
}
4 changes: 2 additions & 2 deletions pkgs/geos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

stdenv.mkDerivation (finalAttrs: {
pname = "geos";
version = "3.12.1";
version = "3.12.2";

src = fetchurl {
url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
hash = "sha256-1up+SSIktRGT6CRP4+wXxNRNB3fzwyyk+xcRQFSaDQM=";
hash = "sha256-NMd3C/AJDuiEiK+Ydn0I53nxJPozQ34Kq+yKvUYJ/sY=";
};

nativeBuildInputs = [ cmake ];
Expand Down
30 changes: 30 additions & 0 deletions pkgs/pdal/nixpkgs/laszip-name.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git b/pkgs/pdal/default.nix a/pkgs/pdal/default.nix
index c035460..eb96889 100644
--- b/pkgs/pdal/default.nix
+++ a/pkgs/pdal/default.nix
@@ -10,7 +10,7 @@
, curl
, gdal
, hdf5-cpp
-, laszip
+, LASzip
, libe57format
, libgeotiff
, libtiff
@@ -45,7 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
curl
gdal
hdf5-cpp
- laszip
+ LASzip
libgeotiff
libtiff
libxml2
@@ -92,7 +92,6 @@ stdenv.mkDerivation (finalAttrs: {
# This test should be re-enabled once https://github.com/PDAL/PDAL/pull/4411
# is merged !
"pdal_io_ogr_writer_test"
-
# Tests failing due to TileDB library implementation, disabled also
# by upstream CI.
# See: https://github.com/PDAL/PDAL/blob/bc46bc77f595add4a6d568a1ff923d7fe20f7e74/.github/workflows/linux.yml#L81
43 changes: 43 additions & 0 deletions pkgs/qgis/3_38.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ lib
, makeWrapper
, nixosTests
, symlinkJoin

, extraPythonPackages ? (ps: [ ])
, qgis-unwrapped

, libsForQt5
}:

symlinkJoin rec {

inherit (qgis-unwrapped) version;
name = "qgis-${version}";

paths = [ qgis-unwrapped ];

nativeBuildInputs = [
makeWrapper
qgis-unwrapped.py.pkgs.wrapPython
];

# extend to add to the python environment of QGIS without rebuilding QGIS application.
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.py.pkgs);

postBuild = ''
# unpackPhase
buildPythonPath "$pythonInputs"
wrapProgram $out/bin/qgis \
--prefix PATH : $program_PATH \
--set PYTHONPATH $program_PYTHONPATH
'';

passthru = {
unwrapped = qgis-unwrapped;
tests.qgis = nixosTests.qgis;
};

meta = qgis-unwrapped.meta;
}
43 changes: 25 additions & 18 deletions pkgs/qgis/qgis-ltr-plugins-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@


Lizmap = {
version = "4.3.16";
url = "https://plugins.qgis.org/plugins/lizmap/version/4.3.16/download/";
hash = "sha256-1f26e2OUdKjubY9SUnlmKlM2/D0CEh/XtlQEoPOxIu0=";
version = "4.3.17";
url = "https://plugins.qgis.org/plugins/lizmap/version/4.3.17/download/";
hash = "sha256-slw8raRUsr+MaO37vgJamB9vN4Bmlo46CMwesO4TlvM=";
};


Expand Down Expand Up @@ -323,9 +323,9 @@


Networks = {
version = "2.7.18";
url = "https://plugins.qgis.org/plugins/networks/version/2.7.18/download/";
hash = "sha256-L4hZRSOMXdrd2YHdBDt3xJLyiphIs6WkmapAvebd46w=";
version = "2.7.19";
url = "https://plugins.qgis.org/plugins/networks/version/2.7.19/download/";
hash = "sha256-wZkTBmCSm/aOAYQ9kWZPwwWaIRn4qzEbxxqjoXokQ9U=";
};


Expand Down Expand Up @@ -358,9 +358,9 @@


DSG-Tools = {
version = "4.12.0";
url = "https://plugins.qgis.org/plugins/DsgTools/version/4.12.0/download/";
hash = "sha256-udaD0xhghsQ55nI1n1l/LAqCn3bIww4sES33RuOJbBE=";
version = "4.14.0";
url = "https://plugins.qgis.org/plugins/DsgTools/version/4.14.0/download/";
hash = "sha256-9ap2hjhXOnwWJv6ot+PuV74vBQNM1msRd/YLIqccuhw=";
};


Expand Down Expand Up @@ -435,9 +435,9 @@


QAD = {
version = "3.0.4";
url = "https://plugins.qgis.org/plugins/qad/version/3.0.4/download/";
hash = "sha256-GaTpFxRDWG+ocbAfyIxlLkQ1PUNjAzjqR/HLTDhA6eE=";
version = "3.0.6";
url = "https://plugins.qgis.org/plugins/qad/version/3.0.6/download/";
hash = "sha256-bo60n1EZjpaIiIopbqbPS+uou8m8BW/U3e1yH9fzV3Y=";
};


Expand Down Expand Up @@ -589,9 +589,9 @@


Mergin-Maps = {
version = "2024.1";
url = "https://plugins.qgis.org/plugins/Mergin/version/2024.1/download/";
hash = "sha256-tngFFce5o8U/dC8F/t5UElJqZ0Vd3n7QbIAtTRGkSbI=";
version = "2024.2";
url = "https://plugins.qgis.org/plugins/Mergin/version/2024.2/download/";
hash = "sha256-7wubqi8fQZXYrgGzCsmy+m6ypfE643a/TIUg56M2+BY=";
};


Expand All @@ -610,9 +610,9 @@


Wtyczka-GIS-Support = {
version = "2.2";
url = "https://plugins.qgis.org/plugins/gissupport_plugin/version/2.2/download/";
hash = "sha256-3JfvcpGrBkH5BYpNilYi2mb/AiKkAEXdBY4JIpC01TU=";
version = "2.3";
url = "https://plugins.qgis.org/plugins/gissupport_plugin/version/2.3/download/";
hash = "sha256-OiM12ALKlIBo4J7cvv6ByOg66eeAVc5em8vxoGKBBoM=";
};


Expand All @@ -637,6 +637,13 @@
};


Pobieracz-danych-GUGiK = {
version = "1.2.0";
url = "https://plugins.qgis.org/plugins/pobieracz_danych_gugik/version/1.2.0/download/";
hash = "sha256-cs6sidg3ND+vENo3o0jBjPUO9iTMmrwr71ySKkzdeVs=";
};


Coordinate-Capture = {
version = "0.2";
url = "https://plugins.qgis.org/plugins/coordinate_capture/version/0.2/download/";
Expand Down
43 changes: 25 additions & 18 deletions pkgs/qgis/qgis-plugins-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@


Lizmap = {
version = "4.3.16";
url = "https://plugins.qgis.org/plugins/lizmap/version/4.3.16/download/";
hash = "sha256-1f26e2OUdKjubY9SUnlmKlM2/D0CEh/XtlQEoPOxIu0=";
version = "4.3.17";
url = "https://plugins.qgis.org/plugins/lizmap/version/4.3.17/download/";
hash = "sha256-slw8raRUsr+MaO37vgJamB9vN4Bmlo46CMwesO4TlvM=";
};


Expand Down Expand Up @@ -323,9 +323,9 @@


Networks = {
version = "2.7.18";
url = "https://plugins.qgis.org/plugins/networks/version/2.7.18/download/";
hash = "sha256-L4hZRSOMXdrd2YHdBDt3xJLyiphIs6WkmapAvebd46w=";
version = "2.7.19";
url = "https://plugins.qgis.org/plugins/networks/version/2.7.19/download/";
hash = "sha256-wZkTBmCSm/aOAYQ9kWZPwwWaIRn4qzEbxxqjoXokQ9U=";
};


Expand Down Expand Up @@ -358,9 +358,9 @@


DSG-Tools = {
version = "4.12.0";
url = "https://plugins.qgis.org/plugins/DsgTools/version/4.12.0/download/";
hash = "sha256-udaD0xhghsQ55nI1n1l/LAqCn3bIww4sES33RuOJbBE=";
version = "4.14.0";
url = "https://plugins.qgis.org/plugins/DsgTools/version/4.14.0/download/";
hash = "sha256-9ap2hjhXOnwWJv6ot+PuV74vBQNM1msRd/YLIqccuhw=";
};


Expand Down Expand Up @@ -435,9 +435,9 @@


QAD = {
version = "3.0.4";
url = "https://plugins.qgis.org/plugins/qad/version/3.0.4/download/";
hash = "sha256-GaTpFxRDWG+ocbAfyIxlLkQ1PUNjAzjqR/HLTDhA6eE=";
version = "3.0.6";
url = "https://plugins.qgis.org/plugins/qad/version/3.0.6/download/";
hash = "sha256-bo60n1EZjpaIiIopbqbPS+uou8m8BW/U3e1yH9fzV3Y=";
};


Expand Down Expand Up @@ -589,9 +589,9 @@


Mergin-Maps = {
version = "2024.1";
url = "https://plugins.qgis.org/plugins/Mergin/version/2024.1/download/";
hash = "sha256-tngFFce5o8U/dC8F/t5UElJqZ0Vd3n7QbIAtTRGkSbI=";
version = "2024.2";
url = "https://plugins.qgis.org/plugins/Mergin/version/2024.2/download/";
hash = "sha256-7wubqi8fQZXYrgGzCsmy+m6ypfE643a/TIUg56M2+BY=";
};


Expand All @@ -610,9 +610,9 @@


Wtyczka-GIS-Support = {
version = "2.2";
url = "https://plugins.qgis.org/plugins/gissupport_plugin/version/2.2/download/";
hash = "sha256-3JfvcpGrBkH5BYpNilYi2mb/AiKkAEXdBY4JIpC01TU=";
version = "2.3";
url = "https://plugins.qgis.org/plugins/gissupport_plugin/version/2.3/download/";
hash = "sha256-OiM12ALKlIBo4J7cvv6ByOg66eeAVc5em8vxoGKBBoM=";
};


Expand All @@ -637,6 +637,13 @@
};


Pobieracz-danych-GUGiK = {
version = "1.2.0";
url = "https://plugins.qgis.org/plugins/pobieracz_danych_gugik/version/1.2.0/download/";
hash = "sha256-cs6sidg3ND+vENo3o0jBjPUO9iTMmrwr71ySKkzdeVs=";
};


Coordinate-Capture = {
version = "0.2";
url = "https://plugins.qgis.org/plugins/coordinate_capture/version/0.2/download/";
Expand Down
49 changes: 49 additions & 0 deletions pkgs/qgis/set-pyqt-package-dirs-3_38.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/cmake/FindPyQt5.cmake b/cmake/FindPyQt5.cmake
index b51fd0075e..87ee317e05 100644
--- a/cmake/FindPyQt5.cmake
+++ b/cmake/FindPyQt5.cmake
@@ -25,7 +25,7 @@ ELSE(EXISTS PYQT5_VERSION_STR)
IF(SIP_BUILD_EXECUTABLE)
# SIP >= 5.0 path

- FILE(GLOB _pyqt5_metadata "${Python_SITEARCH}/PyQt5-*.dist-info/METADATA")
+ FILE(GLOB _pyqt5_metadata "@pyQt5PackageDir@/PyQt5-*.dist-info/METADATA")
IF(_pyqt5_metadata)
FILE(READ ${_pyqt5_metadata} _pyqt5_metadata_contents)
STRING(REGEX REPLACE ".*\nVersion: ([^\n]+).*$" "\\1" PYQT5_VERSION_STR ${_pyqt5_metadata_contents})

diff --git a/cmake/FindQsci.cmake b/cmake/FindQsci.cmake
index 69e41c1fe9..5456c3d59b 100644
--- a/cmake/FindQsci.cmake
+++ b/cmake/FindQsci.cmake
@@ -24,7 +24,7 @@ ELSE(QSCI_MOD_VERSION_STR)
IF(SIP_BUILD_EXECUTABLE)
# SIP >= 5.0 path

- FILE(GLOB _qsci_metadata "${Python_SITEARCH}/QScintilla*.dist-info/METADATA")
+ FILE(GLOB _qsci_metadata "@qsciPackageDir@/QScintilla*.dist-info/METADATA")
IF(_qsci_metadata)
FILE(READ ${_qsci_metadata} _qsci_metadata_contents)
STRING(REGEX REPLACE ".*\nVersion: ([^\n]+).*$" "\\1" QSCI_MOD_VERSION_STR ${_qsci_metadata_contents})
@@ -33,7 +33,7 @@ ELSE(QSCI_MOD_VERSION_STR)
ENDIF(_qsci_metadata)

IF(QSCI_MOD_VERSION_STR)
- SET(QSCI_SIP_DIR "${PYQT_SIP_DIR}")
+ SET(QSCI_SIP_DIR "@qsciPackageDir@/PyQt5/bindings")
SET(QSCI_FOUND TRUE)
ENDIF(QSCI_MOD_VERSION_STR)

diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 4cd19c3af4..668cc6a5e6 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -212,7 +212,7 @@ if (WITH_GUI)
install(FILES ${QGIS_PYTHON_OUTPUT_DIRECTORY}/_gui.pyi DESTINATION ${QGIS_PYTHON_DIR})
endif()
if(QSCI_SIP_DIR)
- set(SIP_EXTRA_OPTIONS ${SIP_EXTRA_OPTIONS} -I ${QSCI_SIP_DIR})
+ set(SIP_BUILD_EXTRA_OPTIONS ${SIP_BUILD_EXTRA_OPTIONS} --include-dir=${QSCI_SIP_DIR})
else()
message(STATUS "Qsci sip file not found - disabling bindings for derived classes")
set(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_QSCI_SIP)
Loading

0 comments on commit 47cd8ff

Please sign in to comment.