!yNLbWuxtZEZoUZYwKG:nixos.org

Nix Geospatial Team

33 Members
Nix Geospatial packages maintenance. Team board - https://github.com/orgs/NixOS/projects/47/views/18 Servers

Load older messages


SenderMessageTime
30 Jun 2024
@timlinux:osgeo.orgTim SuttonWould you mind reviewing it?05:34:04
@imincik:matrix.orgIvan Mincik (imincik)
In reply to @timlinux:osgeo.org
Would you mind reviewing it?
Nice, will have a look.
05:34:35
@timlinux:osgeo.orgTim Sutton Also I am still unclear how to both enable WebKit and add extra python modules 05:35:01
@timlinux:osgeo.orgTim SuttonWhich is a pretty common requirement05:35:23
@timlinux:osgeo.orgTim SuttonIn my own builds I did a bunch of dirty hacks https://github.com/timlinux/nix-config/blob/main/packages/qgis/default.nix05:38:34
@timlinux:osgeo.orgTim SuttonBut I want to recommend the right way on the web site05:39:02
@timlinux:osgeo.orgTim Sutton(I add the needed security advisory)05:39:36
@timlinux:osgeo.orgTim Sutton* (I will add the needed security advisory)05:39:51
@imincik:matrix.orgIvan 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
@imincik:matrix.orgIvan 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
@imincik:matrix.orgIvan 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
@imincik:matrix.orgIvan Mincik (imincik)But I would be very happy to work with you on QGIS packaging improvements if you are interested. 05:42:26
@timlinux:osgeo.orgTim SuttonYes so it needs a package rebuild always right?05:42:47
@imincik:matrix.orgIvan Mincik (imincik)BTW, I am now working on QGIS build on Darwin.05:43:08
@timlinux:osgeo.orgTim SuttonDo I always need to make a custom derivation like I have done?05:43:24
@imincik:matrix.orgIvan 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
@imincik:matrix.orgIvan Mincik (imincik)Do you know about https://geospatial-nix.today ? You can configure QGIS with Python packages and plugins there05:47:18
@timlinux:osgeo.orgTim SuttonRE 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 rudimentary05:48:43
@timlinux:osgeo.orgTim SuttonThe geospatial-nix.today link you shared: No I hadnt seen that, looks like a great idea!05:51:24
@imincik:matrix.orgIvan 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
@timlinux:osgeo.orgTim Suttonregarding 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
@timlinux:osgeo.orgTim 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
@timlinux:osgeo.orgTim SuttonMy biggest question is how to set up a QGIS developer environment with QtCreator, code editing, debugging etc,05:54:57
@timlinux:osgeo.orgTim SuttonI have been able to make custom builds as per my flake link but I want to be able to actually have a dynamic dev env05:55:37
@imincik:matrix.orgIvan 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
@imincik:matrix.orgIvan 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
@timlinux:osgeo.orgTim 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
@imincik:matrix.orgIvan 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
@imincik:matrix.orgIvan Mincik (imincik)(I am boarding my flight to FOSS4G Tartu in 15 minutes)06:01:48
@timlinux:osgeo.orgTim Suttonok safe travels!06:02:02

Show newer messages


Back to Room ListRoom Version: 10