| 30 Jun 2024 |
Tim Sutton | Also I am still unclear how to both enable WebKit and add extra python modules | 05:35:01 |
Tim Sutton | Which is a pretty common requirement | 05:35:23 |
Tim Sutton | In my own builds I did a bunch of dirty hacks https://github.com/timlinux/nix-config/blob/main/packages/qgis/default.nix | 05:38:34 |
Tim Sutton | But I want to recommend the right way on the web site | 05:39:02 |
Tim Sutton | (I add the needed security advisory) | 05:39:36 |
Tim Sutton | * (I will add the needed security advisory) | 05:39:51 |
Ivan Mincik (imincik) | In reply to @timlinux:osgeo.org Also I am still unclear how to both enable WebKit and add extra python modules Regarding python packages, you are doing it correctly using override
'qgis.override { extraPythonPackages = (ps: [ ps.numpy ps.future ps.geopandas ps.rasterio ps.debugpy ]);}' \
--command "qgis"```
| 05:40:02 |
Ivan Mincik (imincik) | Unfortunately, it is not possible to enable webkit because this is a parameter of unwrapped package which is not exposed as a top level package. | 05:41:26 |
Ivan Mincik (imincik) | * Unfortunately, it is not possible to enable webkit in the same way because this is a parameter of unwrapped package which is not exposed as a top level package. | 05:41:43 |
Ivan Mincik (imincik) | But I would be very happy to work with you on QGIS packaging improvements if you are interested. | 05:42:26 |
Tim Sutton | Yes so it needs a package rebuild always right? | 05:42:47 |
Ivan Mincik (imincik) | BTW, I am now working on QGIS build on Darwin. | 05:43:08 |
Tim Sutton | Do I always need to make a custom derivation like I have done? | 05:43:24 |
Ivan Mincik (imincik) | In reply to @timlinux:osgeo.org Yes so it needs a package rebuild always right? qgis-unwrapped is called in let binding in default (wrapped) package. You dont have any access to variable in let binding. | 05:44:50 |
Ivan Mincik (imincik) | Do you know about https://geospatial-nix.today ? You can configure QGIS with Python packages and plugins there | 05:47:18 |
Tim Sutton | RE helping with packaging - thanks! I already appreciate the work you have done and follow the changes you make closely - I would help you if I could but my nixos knowledge is still very rudimentary | 05:48:43 |
Tim Sutton | The geospatial-nix.today link you shared: No I hadnt seen that, looks like a great idea! | 05:51:24 |
Ivan Mincik (imincik) | In reply to @timlinux:osgeo.org RE helping with packaging - thanks! I already appreciate the work you have done and follow the changes you make closely - I would help you if I could but my nixos knowledge is still very rudimentary If you are interested, I can offer you few hours of my time during your stay in Slovakia and answer your questions. Or provide any help you need to advance in your Nix knowledge. | 05:52:20 |
Tim Sutton | regarding the let binding, so what is the canonical way to enable it? Copy the derivation as I have done or is there a better way? | 05:52:46 |
Tim Sutton | In reply to @imincik:matrix.org If you are interested, I can offer you few hours of my time during your stay in Slovakia and answer your questions. Or provide any help you need to advance in your Nix knowledge. That would be amazing! To be honest I have spent the last year and a bit totally addicted to nixos | 05:53:44 |
Tim Sutton | My biggest question is how to set up a QGIS developer environment with QtCreator, code editing, debugging etc, | 05:54:57 |
Tim Sutton | I have been able to make custom builds as per my flake link but I want to be able to actually have a dynamic dev env | 05:55:37 |
Ivan Mincik (imincik) | You need to expose qgis-unwrapped
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 28f987a534bc..85a45bdbdabb 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -29273,6 +29273,7 @@ with pkgs;
qgis-ltr = callPackage ../applications/gis/qgis/ltr.nix { };
qgis = callPackage ../applications/gis/qgis { };
+ qgis-unwrapped = libsForQt5.callPackage ../applications/gis/qgis/unwrapped.nix { };
qmapshack = libsForQt5.callPackage ../applications/gis/qmapshack { };```
If you want to override it.
| 05:56:19 |
Ivan Mincik (imincik) | In reply to @timlinux:osgeo.org regarding the let binding, so what is the canonical way to enable it? Copy the derivation as I have done or is there a better way? But I suggest using qgis package from geospatial-nix (https://github.com/imincik/geospatial-nix) which is exposing unwrapped packages out-of-box. | 05:58:14 |
Tim Sutton | The other things on my wish list are:
- separate out ltr and latest so that they can both be installed with proper discrete .desktop shortcuts onthe same system
- provide a 'batteries included' environment with grass, saga, whitebox-tools, pcraster (no package for that in nix yet!) etc
- easy enable / disable webkit
- split QGIS Server off to its own package and make it easy to set it up with e.g. nginx
| 06:00:08 |
Ivan Mincik (imincik) | Tim Sutton - osgeo: I am very happy to spend whole day with you in Bratislava and work on qgis and nix if you want. We can do a lot of improvements. Let me know. | 06:01:13 |
Ivan Mincik (imincik) | (I am boarding my flight to FOSS4G Tartu in 15 minutes) | 06:01:48 |
Tim Sutton | ok safe travels! | 06:02:02 |
Tim Sutton | sorry I took so long to find this room! | 06:02:11 |
Ivan Mincik (imincik) | In reply to @timlinux:osgeo.org
The other things on my wish list are:
- separate out ltr and latest so that they can both be installed with proper discrete .desktop shortcuts onthe same system
- provide a 'batteries included' environment with grass, saga, whitebox-tools, pcraster (no package for that in nix yet!) etc
- easy enable / disable webkit
- split QGIS Server off to its own package and make it easy to set it up with e.g. nginx
All of them are solvable and I'll be interested in working on them. | 06:03:02 |