summary refs log tree commit diff
path: root/pkgs/common-updater/scripts
Commit message (Collapse)AuthorAge
* list-git-tags: fix for tags with / in the tag namelinsui2023-02-10
|
* python37: dropMartin Weinelt2023-01-05
| | | | | | | | 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.
* common-updater-scripts,directoryListingUpdater: add extraRegex parameterFrancesco Gazzetta2022-12-10
|
* common-updater-scripts: list-directory-versions: scan for absolute urls tooFrancesco Gazzetta2022-12-10
|
* qt5: drop 5.12, 5.14K9002022-12-03
|
* httpTwoLevelsUpdater: fix variable default valueJosé Romildo2022-10-01
|
* gitUpdater: fix variable default valueJosé Romildo2022-10-01
|
* directoryListingUpdater: initJosé Romildo2022-10-01
| | | | Update a package looking for available versions in an html page
* Merge pull request #193248 from romildo/upd.generic-updaterJosé Romildo Malaquias2022-09-30
|\ | | | | generic-updater: more flexible with name, pname, version and attr path, and cleanups
| * generic-updater: more flexible with name, pname, version and attr pathJosé Romildo2022-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | common-updater-scripts: fix silent error on 404Jan Tojnar2022-09-27
|/ | | | | | | 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.
* common-updater-scripts: Use custom fake temporary hashJan Tojnar2022-09-16
| | | | | | | | | | | | | 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
* common-updater-scripts: Only look for URL when replacing itJan Tojnar2022-09-09
| | | | | | | | | | 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.
* common-updater-scripts: Fix replacement failure detectionsJan Tojnar2022-09-09
| | | | | | | | | | | | 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.
* common-updater-scripts/update-source-version: Add flag required for nix-commandOPNA26082022-07-07
|
* common-updater-scripts/list-git-tags: prefer src.meta.homepageKira Bruneau2022-04-23
|
* httpTwoLevelsUpdater: initJosé Romildo2022-02-21
|
* gitUpdater: initJosé Romildo2022-02-21
| | | | | | | - 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'
* common-updater-scripts: Silence outPath checkJan Tojnar2021-12-31
| | | | It is expected to fail in repos not using flakes-compat (like Nixpkgs).
* common-updater-scripts: allow using different src attributeJan Tojnar2021-12-31
| | | | Useful for packages with multiple sources.
* common-updater-scripts/update-source-version: Fix on Nix 2.4Samuel Gräfenstein2021-10-03
|
* common-updater-scripts/*: /bin/sh -> /usr/bin/env bashSamuel Gräfenstein2021-10-01
|
* common-updater-scripts/list-git-tags: don't print commandsSamuel Gräfenstein2021-09-29
|
* common-updater-scripts: Support attribute lookup in flakeJan Tojnar2021-04-24
| | | | | | | | 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.
* common-updater-scripts: Replace flake source by local pathJan Tojnar2021-04-24
| | | | | | | 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.
* common-updater-scripts: handle default.nix without argumentsJan Tojnar2021-04-24
| | | | | So that the script can be used outside of nixpkgs. For example, the default.nix recommended by flake-compat does not take arguments.
* common-updater-scripts: remove lib dependencyJan Tojnar2021-04-24
| | | | So that the script can be used outside of nixpkgs.
* pkgs.common-updater-scripts: update-source-version name singularMatej Urbas2021-01-09
|
* scripts/mark-broken: fix pathSandro Jäckel2020-11-25
|
* common-updater-scripts: add --rev to update-source-versionFrancesco Gazzetta2020-11-21
| | | | | | | 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.
* scripts/mark-broken: improveJonathan Ringer2020-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* common-updater-scripts: add --print-changes flagJan Tojnar2020-09-19
| | | | Printing the changed file and new version can be used to commit the changes to git.
* common-updater-scripts: add mark-broken scriptMilan Pässler2020-04-16
|
* common-updater-scripts: add scripts to help update packagesJosé Romildo Malaquias2020-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - updateScript: A nix expression that can be used in passThrough to update a package - list-git-tags: A shell script to list available tags in a git repository - list-archive-two-level-versions: A shell script to list available versions in a web site in two levels: there is a page listing the available major.minor versions, and for each of them there is another page listings the patch level versions major.minor.patch. It is suitable for Xfce packages for instance. How the updater works: 1. collect the available versions from the source repository (using a script given as argument) 2. print the collected versions (for debugging) 3. (optionally) apply some transformation to the collected versions to make them compatible with the versions used in nixpkgs (for instance, tags in the Xfce git repository may be prefixed with the package name, and the prefix need to be removed) 4. sort the available versions in decreasing order 5. choose the first version that pass validation: - check if the version may be a development version - if the version IS unstable, skip it and give a warning about skipping a development version (for debugging) - if the version COULD BE unstable, take it and give a warning about taking a potential development version (for debugging) - if the version IS stable, take it 6. update the package version and checksum in its nix expression 7. print the git commands for adding the modified files and for committing the changes
* common-updater-scripts: Fix replacing SRI hashesJan Tojnar2020-02-20
| | | | | SRI hashes (base64 encoded) can contain + sign which is a special character in extended regular expressions so it needs to be escaped.
* common-updater-scripts: Handle errors in src hashingJan Tojnar2020-02-20
| | | | | | | | | Previously, when downloading src failed for other reason than hash mismatch, the error ended up in newHash. This made evaluation fail since the error message is not valid hash. Now the failure will make newHash empty. It is also much cleaner than previously since \K is very cool thing and we no longer grep for legacy messages.
* common-updater-scripts: move destructive changes further in the scriptJan Tojnar2020-02-04
| | | | We can check some things before the modifications take place.
* common-updater-scripts: clean upJan Tojnar2020-02-04
| | | | | | Fix issues reported by shellcheck and few other style issues. Though we need to ignore $systemArg complaints because Nix does not support passing --system as a single argument.
* common-updater-scripts: Support SRI-style hashJan Tojnar2020-02-04
| | | | | | | | Some fetcher functions support SRI-style `hash` attribute in addition to legacy type-specific attributes. When `hash` is used `outputHashAlgo` is null so let’s complain when SRI-style hash value was not detected. Such attributes match the form ${type}${separator}${hash}: True SRI uses dash as a separator and only supports base64, whereas Nix’s SRI-style format uses a colon and supports all the same encodings like regular hashes (16/32/64). To keep this program reasonably simple, we will upgrade Nix’s SRI-like format to pure SRI instead of preserving it.
* common-updater-scripts: mention --ignore-same-hash in usageJan Tojnar2020-02-04
|
* common-updater-scripts: Fix breakagetalyz2019-11-26
| | | | | Fixes a bug introduced by 9b090ccbca3f7dd26d91db06e96e8bf8282c37ca where the script fails to run if $attr.${versionKey} exists.
* treewide: Get rid of most `parseDrvName` without breaking compatJohn Ericson2019-11-24
| | | | | That is because this commit should be merged to both master and release-19.09.
* common-updater-scripts: simplify fetchgit fixJan Tojnar2019-06-02
| | | | | No need to try evaluate the URL twice as introduced in the original fix https://github.com/NixOS/nixpkgs/commit/cce486838b6c52dedfec1c93f60ebadb72c48431
* common-updater-scripts: keep the unescaped oldVersionJan Tojnar2019-06-02
| | | | | Previously, we escaped the old version in place for use in sed commands, and then had to use that in error messages. We can do better.
* common-updater: Fix syntaxTim Steinbach2019-05-06
| | | | Missing space before closing ] in if statement caused syntax errors
* common-updater-scripts: fix fallback version detectionJan Tojnar2019-05-03
| | | | parseDrvName returns a set containing version attribute, not our customizable key.
* update-source-version: Fixes, add --ignore-same-hashTim Steinbach2019-04-06
| | | | | | | | | | | | --ignore-same-hash allows ignoring if the same has is used. This gives the ability to run update-source-version multiple times to change multiple keys. Fix version-key, which was not being used to determine the oldVersion variable. If $attr.src.drvAttrs.urls is not found, look for $attr.src.drvAttrs.url since it is being used like that in fetchgit
* common-updater-scripts: Add file and system flagsJan Tojnar2019-03-02
| | | | | | | | | | | You can now optionally invoke update-source-versions with: * --system flag changing the host platform, to be passed dirrectly to Nix commands. This is useful for binary packages which have different sources for each platform. * --file flag allowing to change the file to be modified. This is useful for packages that offer multiple variants, listed in a different file than the derivation itself; e.g. packages.nix of Sublime Text 3. * --version-key, which is now a keyword flag instead of a positional argument.
* common-update-scripts: fixup for current/latest nix hash outputWill Dietz2019-02-11
| | | | | | Courtesy of @jtojnar, thanks! See https://github.com/NixOS/nixpkgs/issues/54962#issuecomment-459429698
* common-updater, firefox: fix updater for firefoxtaku02018-11-16
|