From cc3decea477397e6a07ea3f84949a2942e5c5f1b Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Fri, 7 Aug 2026 14:32:43 +0000 Subject: [PATCH] qgis{,-ltr}: drop reference to src The src attribute in the wrapped derivation is only required by the update script, however the presence of this reference causes the source code to be downloaded whenever the wrapped derivation is realised, even if the unwrapped derivation is already realised or can be substituted. Referencing the unwrapped derivation in the update script avoids this problem. --- pkgs/applications/gis/qgis/default.nix | 2 +- pkgs/applications/gis/qgis/ltr.nix | 2 +- pkgs/applications/gis/qgis/update.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/gis/qgis/default.nix b/pkgs/applications/gis/qgis/default.nix index dff51be13267..e81a51956d53 100644 --- a/pkgs/applications/gis/qgis/default.nix +++ b/pkgs/applications/gis/qgis/default.nix @@ -21,7 +21,7 @@ let in symlinkJoin { - inherit (qgis-unwrapped) version outputs src; + inherit (qgis-unwrapped) version outputs; pname = "qgis"; paths = [ qgis-unwrapped ]; diff --git a/pkgs/applications/gis/qgis/ltr.nix b/pkgs/applications/gis/qgis/ltr.nix index c94a12dfb25b..532ad7efc7d3 100644 --- a/pkgs/applications/gis/qgis/ltr.nix +++ b/pkgs/applications/gis/qgis/ltr.nix @@ -20,7 +20,7 @@ let in symlinkJoin { - inherit (qgis-ltr-unwrapped) version outputs src; + inherit (qgis-ltr-unwrapped) version outputs; pname = "qgis-ltr"; paths = [ qgis-ltr-unwrapped ]; diff --git a/pkgs/applications/gis/qgis/update.sh b/pkgs/applications/gis/qgis/update.sh index 87a95697a1ca..6cddde3fe07b 100755 --- a/pkgs/applications/gis/qgis/update.sh +++ b/pkgs/applications/gis/qgis/update.sh @@ -17,4 +17,4 @@ elif [ "$package" == "qgis-ltr" ]; then version="$(curl --silent $url | jq '.ltr' | make_version)" fi -update-source-version "$package" "$version" +update-source-version "$package.unwrapped" "$version"