File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed
pkgs/applications/gis/qgis Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 2121in
2222symlinkJoin rec {
2323
24- inherit ( qgis-unwrapped ) version ;
24+ inherit ( qgis-unwrapped ) version src ;
2525 name = "qgis-${ version } " ;
2626
2727 paths = [ qgis-unwrapped ] ;
@@ -47,6 +47,10 @@ symlinkJoin rec {
4747 passthru = {
4848 unwrapped = qgis-unwrapped ;
4949 tests . qgis = nixosTests . qgis ;
50+ updateScript = [
51+ ./update.sh
52+ "qgis"
53+ ] ;
5054 } ;
5155
5256 meta = qgis-unwrapped . meta ;
Original file line number Diff line number Diff line change 2121in
2222symlinkJoin rec {
2323
24- inherit ( qgis-ltr-unwrapped ) version ;
24+ inherit ( qgis-ltr-unwrapped ) version src ;
2525 name = "qgis-${ version } " ;
2626
2727 paths = [ qgis-ltr-unwrapped ] ;
@@ -48,6 +48,10 @@ symlinkJoin rec {
4848 passthru = {
4949 unwrapped = qgis-ltr-unwrapped ;
5050 tests . qgis-ltr = nixosTests . qgis-ltr ;
51+ updateScript = [
52+ ./update.sh
53+ "qgis-ltr"
54+ ] ;
5155 } ;
5256
5357 inherit ( qgis-ltr-unwrapped ) meta ;
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env nix-shell
2+ #! nix-shell -i bash -p common-updater-scripts curl jq
3+
4+ set -eu -o pipefail
5+
6+ url=" https://version.qgis.org/version.json"
7+
8+ package=" $1 "
9+
10+ function make_version {
11+ jq --raw-output ' [.major, .minor, .patch] | join(".")'
12+ }
13+
14+ if [ " $package " == " qgis" ]; then
15+ version=" $( curl --silent $url | jq ' .latest' | make_version) "
16+ elif [ " $package " == " qgis-ltr" ]; then
17+ version=" $( curl --silent $url | jq ' .ltr' | make_version) "
18+ fi
19+
20+ update-source-version " $package " " $version "
You can’t perform that action at this time.
0 commit comments