From 51bd0f18ac35e19079e981ff8088f9dc2807339b Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Thu, 8 Aug 2024 15:14:28 +0200 Subject: [PATCH] qgis: remove obsolete 3.38 file --- pkgs/qgis/unwrapped-3_38.nix | 184 ----------------------------------- 1 file changed, 184 deletions(-) delete mode 100644 pkgs/qgis/unwrapped-3_38.nix diff --git a/pkgs/qgis/unwrapped-3_38.nix b/pkgs/qgis/unwrapped-3_38.nix deleted file mode 100644 index 809491c..0000000 --- a/pkgs/qgis/unwrapped-3_38.nix +++ /dev/null @@ -1,184 +0,0 @@ -{ lib -, fetchFromGitHub -, makeWrapper -, mkDerivation -, substituteAll -, wrapGAppsHook -, wrapQtAppsHook - -, withGrass ? true -, withWebKit ? false - -, bison -, cmake -, draco -, exiv2 -, fcgi -, flex -, geos -, gdal -, grass -, gsl -, hdf5 -, libspatialindex -, libspatialite -, libzip -, netcdf -, ninja -, openssl -, pdal -, postgresql -, proj -, protobuf -, python3 -, qca-qt5 -, qscintilla -, qt3d -, qtbase -, qtkeychain -, qtlocation -, qtmultimedia -, qtsensors -, qtserialport -, qtwebkit -, qtxmlpatterns -, qwt -, sqlite -, txt2tags -, zstd -}: - -let - # pyqt5 override was moved to flake.nix - py = python3; - - pythonBuildInputs = with py.pkgs; [ - chardet - gdal - jinja2 - numpy - owslib - psycopg2 - pygments - pyqt5 - pyqt-builder - python-dateutil - pytz - pyyaml - qscintilla-qt5 - requests - setuptools - sip - six - urllib3 - ]; -in mkDerivation rec { - version = "3.38.0"; - pname = "qgis-unwrapped"; - - src = fetchFromGitHub { - owner = "qgis"; - repo = "QGIS"; - rev = "final-${lib.replaceStrings [ "." ] [ "_" ] version}"; - hash = "sha256-vL9Go8Kn6VFOeztD/LZi5QHpZVPFfOFarTsCLTf4D2s="; - }; - - passthru = { - inherit pythonBuildInputs; - inherit py; - }; - - nativeBuildInputs = [ - makeWrapper - wrapGAppsHook - wrapQtAppsHook - - bison - cmake - flex - ninja - ]; - - buildInputs = [ - draco - exiv2 - fcgi - geos - gsl - hdf5 - libspatialindex - libspatialite - libzip - netcdf - openssl - pdal - postgresql - proj - protobuf - qca-qt5 - qscintilla - qt3d - qtbase - qtkeychain - qtlocation - qtmultimedia - qtsensors - qtserialport - qtxmlpatterns - qwt - sqlite - txt2tags - zstd - ] ++ lib.optional withGrass grass - ++ lib.optional withWebKit qtwebkit - ++ pythonBuildInputs; - - patches = [ - (substituteAll { - src = ./set-pyqt-package-dirs-3_38.patch; - pyQt5PackageDir = "${py.pkgs.pyqt5}/${py.pkgs.python.sitePackages}"; - qsciPackageDir = "${py.pkgs.qscintilla-qt5}/${py.pkgs.python.sitePackages}"; - }) - ]; - - # Add path to Qt platform plugins - # (offscreen is needed by "${APIS_SRC_DIR}/generate_console_pap.py") - env.QT_QPA_PLATFORM_PLUGIN_PATH="${qtbase}/${qtbase.qtPluginPrefix}/platforms"; - - cmakeFlags = [ - "-DCMAKE_BUILD_TYPE=Release" - "-DWITH_3D=True" - "-DWITH_PDAL=True" - "-DENABLE_TESTS=False" - "-DQT_PLUGINS_DIR=${qtbase}/${qtbase.qtPluginPrefix}" - ] ++ lib.optional (!withWebKit) "-DWITH_QTWEBKIT=OFF" - ++ lib.optional withGrass (let - gmajor = lib.versions.major grass.version; - gminor = lib.versions.minor grass.version; - in "-DGRASS_PREFIX${gmajor}=${grass}/grass${gmajor}${gminor}" - ); - - qtWrapperArgs = [ - "--set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase}/${qtbase.qtPluginPrefix}/platforms" - ]; - - dontWrapGApps = true; # wrapper params passed below - - postFixup = lib.optionalString withGrass '' - # GRASS has to be availble on the command line even though we baked in - # the path at build time using GRASS_PREFIX. - # Using wrapGAppsHook also prevents file dialogs from crashing the program - # on non-NixOS. - wrapProgram $out/bin/qgis \ - "''${gappsWrapperArgs[@]}" \ - --prefix PATH : ${lib.makeBinPath [ grass ]} - ''; - - meta = with lib; { - description = "Free and Open Source Geographic Information System"; - homepage = "https://www.qgis.org"; - license = licenses.gpl2Plus; - maintainers = with maintainers; teams.geospatial.members ++ [ lsix ]; - platforms = with platforms; linux; - }; -}