Commit Graph

8 Commits

Author SHA1 Message Date
Jan Tojnar
812dd30e62 gnome.updateScript: Prevent downgrading packages 2022-10-25 15:14:02 +02:00
Jan Tojnar
a9b97f18d0 gnome.updateScript: Return explicitly set attr path
The update script currently requires attribute to be passed.
Let’s return it using the commit feature.
Otherwise, `update.nix` would use the attribute it first found
for the commit message, which can be something like `emscriptenPackages.libxml2`.
2022-10-25 15:11:29 +02:00
Jan Tojnar
68505781e3 gnome.updateScript: More Python
This was prompted by the need to capture exit status of `find-latest-version.py` in the next commit.
I had to drop `errexit` (if I did not want to result to even worse hacks) but that concealed errors like the following,
when I accidentally used an incorrect equals operator in numeric comparison:

    line 24: ((: 1 = 1 : attempted assignment to non-variable (error token is "= 1 ")

Converting the plumbing in `gnome/update.nix` to Python also makes it slightly easier to read.

For now, `find-latest-version.py` is still invoked as a separate process (rather than being imported as a Python module),
as `update.nix` might be replaced by `genericUpdater` in the future.
2022-10-25 15:09:34 +02:00
Jan Tojnar
a5af361af4 gnome.updateScript: Support freezing up to an explicit version
libgweather released version 4 after releasing version 40,
we need to ignore the latter.
2022-09-27 02:19:25 +02:00
Jan Tojnar
00ee56846b gnome.updateScript: allow updating to unstable releases
It is now possible to update to GNOME pre-release by simply running:

GNOME_UPDATE_STABILITY=unstable nix-shell maintainers/scripts/update.nix --arg predicate '(path: pkg: pkg.updateScript.name or null == "gnome-update-script")' --argstr keep-going true --argstr commit true
2022-02-21 19:12:36 +01:00
Jan Tojnar
86a0a335dc gnome.updateScript: avoid rebuilding the derivation
Previously, a separate derivation was needed for each upper bound.

Since we are using bash specific features, let’s declare it explicitly.
2022-02-21 19:12:35 +01:00
Jan Tojnar
5b8320d446 gnome.updateScript: Use experimental support for custom commit messages 2022-02-21 19:12:35 +01:00
Jan Tojnar
468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00