about summary refs log tree commit diff
path: root/pkgs/common-updater
AgeCommit message (Collapse)AuthorFilesLines
2023-02-10list-git-tags: fix for tags with / in the tag namelinsui1-1/+1
2023-01-05python37: dropMartin Weinelt1-1/+0
The package set hasn't been working for a long time now, due to infinite recursions, that nobody was going to fix. The release is going to go EOL in 2023/06 and we don't want to ship it in NixOS 23.05 anyway.
2022-12-25nix-update-script: make attrPath optionalfigsoda1-4/+4
2022-12-10common-updater-scripts,directoryListingUpdater: add extraRegex parameterFrancesco Gazzetta2-2/+7
2022-12-10common-updater-scripts: list-directory-versions: scan for absolute urls tooFrancesco Gazzetta1-2/+2
2022-12-03qt5: drop 5.12, 5.14K9001-1/+0
2022-11-28nix-update-script: add extraArgs to pass custom arguments to nix-updateschnusch1-2/+4
2022-10-01httpTwoLevelsUpdater: fix variable default valueJosé Romildo2-3/+3
2022-10-01gitUpdater: fix variable default valueJosé Romildo1-1/+1
2022-10-01directoryListingUpdater: initJosé Romildo4-4/+114
Update a package looking for available versions in an html page
2022-09-30Merge pull request #193248 from romildo/upd.generic-updaterJosé Romildo Malaquias5-48/+71
generic-updater: more flexible with name, pname, version and attr path, and cleanups
2022-09-27generic-updater: more flexible with name, pname, version and attr pathJosé Romildo5-48/+71
- This information is availabe from environment variables defined by maintainers/scripts/update.nix - Renamed the shell script to generic-update-script.sh - Add a new optional argument (representing the package name) to the shell script - The version lister is called with a new optional argument (representing the package attribute path)
2022-09-27common-updater-scripts: fix silent error on 404Jan Tojnar1-2/+6
When TOFU was unable to download the file, there would be no hash in the fetch log, causing the grep to fail. Since the script is set to errexit, it would terminate the processing without any output. Let’s instead print the fetch log.
2022-09-16common-updater-scripts: Use custom fake temporary hashJan Tojnar1-6/+6
Some update scripts (e.g. sublime4) already use all-zeroes hashes for resetting a version when updating multiple sources. When `update-source-version "${attrPath}" 0 "${lib.fakeSha256}"` was executed, u-s-v would not be able to detect that the hash changed and would fail with the following message: Failed to replace temporary source hash of '…' to the final source hash! The update script worked when we tested it because change detection itself was broken until recently: https://github.com/NixOS/nixpkgs/pull/190554
2022-09-09common-updater-scripts: Only look for URL when replacing itJan Tojnar1-7/+8
This would do a pointless slow `nix-instantiate` call for a feature that is rarely used – initially, it was added for Firefox updates https://github.com/NixOS/nixpkgs/commit/186de9ca9ef5650180f2f0cf0a9efdc7dfb16e2e but now not even that uses it. Additionally, this would break stuff like `cargoDeps`, which lack the url attributes.
2022-09-09common-updater-scripts: Fix replacement failure detectionsJan Tojnar1-14/+11
Previously, we only made `sed` back up the version replacement. This meant that `cmp` would already recognize the files as changed before replacing hash and the other values, and the error would not be printed. Let’s always make the `sed` create a backup so that we can detect success of each situation. This will no longer allow us to revert to the original version on failure but the updated file should be tracked in git anyway.
2022-09-07update-script-combinators.copyAttrOutputToFile: initJan Tojnar1-4/+34
Useful for storing generated files into Nixpkgs repo as a part of an update script to avoid a build time dependency.
2022-09-07update-script-combinators: experimental initJan Tojnar1-0/+128
The sequence combinator will be useful for updating packages consisting of multiple sources.
2022-09-04unstableGitUpdater: fix inaccurate commentsAlyssa Ross1-2/+2
It used to use src.url, but when that was changed the comments weren't updated. Fixes: 7aae279ad9a ("unstableGitUpdater: fix updating fetchzip-based sources")
2022-07-07common-updater-scripts/update-source-version: Add flag required for nix-commandOPNA26081-2/+2
2022-07-02generic-updater: fix nix edit command lineJosé Romildo1-1/+1
Recently `nix edit` works only with `--extra-experimental-features nix-command`
2022-05-24unstableGitUpdater: fix updating fetchzip-based sourcesJan Tojnar1-1/+1
a67950f20b97a293b2fefeecc349c6b785321e4b added `url` attribute from `fetchurl` and therefore also from `fetchzip`. We previously relied on `url` from fetchgit-based fetchers to find the repo URL but now it will just return tarballs in the case of `fetchFrom{GitHub,GitLab}`. Let’s add an attribute to `fetch{git,FromGitHub,FromGitLab}` to expose a repo URL consistently.
2022-04-23gitUpdater: update comment for urlKira Bruneau1-2/+2
2022-04-23common-updater-scripts/list-git-tags: prefer src.meta.homepageKira Bruneau1-1/+1
2022-04-01gitUpdater: add explicit url parameter to specify a git tree for tagsSergei Trofimovich1-2/+6
That way gitUpdater could be used to extract most recent published releases for .nix files that don't use git directly to define builds. An example is iproute2 package which does not have a single place to lookup most recent release.
2022-02-21httpTwoLevelsUpdater: initJosé Romildo2-8/+33
2022-02-21gitUpdater: initJosé Romildo4-25/+76
- Add the 'gitUpdater' helper function to update git based packages, using the 'genericUpdater' function. - Rework argument passing to the `list-git-tags' and 'list-archive-two-level-versions' scripts. - Replace 'genericUpdater' plus 'list-git-tags' by 'gitUpdater'
2022-02-18unstableGitUpdater: Allow using stable versionsJan Tojnar1-3/+36
It is important to keep the version as parsed by `builtins.parseDrvName` monotonic for packages that often switch between stable and unstable versions, for nix-env to be able to update them reliably. Let’s optionally use the version format described by RFC 107: https://github.com/NixOS/rfcs/pull/107 The downside is that it requires fetching more commits to be able to determine the latest tag.
2022-02-18unstableGitUpdater: Use single derivation for all branchesJan Tojnar1-5/+37
This will reduce the number of build when updating a large number of packages at the same time (e.g. when updating all packages of a maintainer).
2022-02-18unstableGitUpdater: Fix support for fetchFromGit{Hub,Lab}Jan Tojnar1-1/+1
When `fetchFromGitHub` uses `fetchzip` instead of `fetchgit` internally, which is the most common use case, there is no `src.url` attribute so the update will fail. Let’s fix that by falling back to `src.meta.homepage`, which these fetchers set to the repository URL.
2021-12-31common-updater-scripts: Silence outPath checkJan Tojnar1-1/+1
It is expected to fail in repos not using flakes-compat (like Nixpkgs).
2021-12-31common-updater-scripts: allow using different src attributeJan Tojnar1-11/+19
Useful for packages with multiple sources.
2021-10-03common-updater-scripts/update-source-version: Fix on Nix 2.4Samuel Gräfenstein1-2/+6
2021-10-01common-updater-scripts/*: /bin/sh -> /usr/bin/env bashSamuel Gräfenstein2-2/+2
2021-09-29common-updater-scripts/list-git-tags: don't print commandsSamuel Gräfenstein1-1/+1
2021-06-17unstable-updater.nix now understands a branch argumentAttila Lendvai1-2/+6
2021-04-24common-updater-scripts: Support attribute lookup in flakeJan Tojnar1-0/+21
In flakes, packages are not exposed directly but instead they are declared inside “packages” or “legacyPackages” output under their host platform. flake-compat reflects this. Let’s look for an attribute also in these outputs if the direct lookup fails.
2021-04-24common-updater-scripts: Replace flake source by local pathJan Tojnar1-0/+8
When update-source-version is run in a repo with flake-compat, it would find the files in Nix store. Let’s replace them with the local path of the repository.
2021-04-24common-updater-scripts: handle default.nix without argumentsJan Tojnar1-3/+6
So that the script can be used outside of nixpkgs. For example, the default.nix recommended by flake-compat does not take arguments.
2021-04-24common-updater-scripts: remove lib dependencyJan Tojnar1-4/+3
So that the script can be used outside of nixpkgs.
2021-02-19treewide: makeWrapper buildInputs to nativeBuildInputsBen Siraphob1-1/+1
2021-01-25treewide: remove stdenv where not neededPavol Rusnak1-2/+1
2021-01-24treewide: stdenv.lib -> libPavol Rusnak1-2/+2
2021-01-09pkgs.common-updater-scripts: update-source-version name singularMatej Urbas1-1/+1
2020-11-25scripts/mark-broken: fix pathSandro Jäckel1-1/+1
2020-11-21unstableUpdater: initFrancesco Gazzetta1-0/+44
2020-11-21common-updater-scripts: add --rev to update-source-versionFrancesco Gazzetta1-1/+20
Adds a --rev=<revision> parameter to the script that makes it possible to explicitly specify a new revision. Useful to update unstable packages, where the version and revision may be independent.
2020-10-30scripts/mark-broken: improveJonathan Ringer1-66/+86
This improves on the previous verison of this script. Previously it only accepted one attr, and required explicit passing of the "broken" value. This script is meant to be used to mark failing hydra builds as broken in the meta attrs To use the script, you should pass the list of failing attrs as arguments to the script. Example: `cat failing-attrs | xargs ./pkgs/common-update/scripts/mark-broken` Generating a list of failing attrs: (this should be improved at a later date) - Go to the most recent hydra evaluation with all builds completed - Select the "builds still failing" tab - Highlight and select all packages, should be prefixed with `nixpkgs.` - Use regex and editor foo to leave only the attr names - Use the above example command to then execute the script OTHER NOTES: - The `denyFileList` and `denyAttrList` will likely need to be updated slightly to align with the conventions used in nixpkgs at execution time - Any attrs which failed for any reason will be written to `failed-marks.txt`. Those attrs will likely need manual attention as disablement will likely be conditional.
2020-09-19common-updater-scripts: add --print-changes flagJan Tojnar1-1/+11
Printing the changed file and new version can be used to commit the changes to git.
2020-07-29treewide: use nix-update updateScript for packages I maintainworldofpeace1-0/+5