about summary refs log tree commit diff
path: root/pkgs/common-updater
AgeCommit message (Collapse)AuthorFilesLines
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
2020-05-04genericUpdater: add attribute argument to ignore some versionsJosé Romildo Malaquias1-5/+15
2020-04-24Merge pull request #85337 from petabyteboy/feature/mark-brokenworldofpeace2-2/+88
common-updater-scripts: add mark-broken script
2020-04-16common-updater: change default development version check to falseJosé Romildo Malaquias1-2/+2
2020-04-15common-updater: add update script to all-packagesJosé Romildo Malaquias1-0/+0
2020-04-16common-updater-scripts: add mark-broken scriptMilan Pässler2-2/+88
2020-04-15common-updater-scripts: add scripts to help update packagesJosé Romildo Malaquias4-2/+167
- 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
2020-02-20common-updater-scripts: Fix replacing SRI hashesJan Tojnar1-2/+6
SRI hashes (base64 encoded) can contain + sign which is a special character in extended regular expressions so it needs to be escaped.
2020-02-20common-updater-scripts: Handle errors in src hashingJan Tojnar1-5/+5
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.
2020-02-04common-updater-scripts: move destructive changes further in the scriptJan Tojnar1-15/+15
We can check some things before the modifications take place.
2020-02-04common-updater-scripts: clean upJan Tojnar2-21/+21
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.
2020-02-04common-updater-scripts: Support SRI-style hashJan Tojnar1-0/+23
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.
2020-02-04common-updater-scripts: mention --ignore-same-hash in usageJan Tojnar1-0/+1
2019-11-26common-updater-scripts: Fix breakagetalyz1-1/+1
Fixes a bug introduced by 9b090ccbca3f7dd26d91db06e96e8bf8282c37ca where the script fails to run if $attr.${versionKey} exists.
2019-11-24treewide: Get rid of most `parseDrvName` without breaking compatJohn Ericson1-2/+2
That is because this commit should be merged to both master and release-19.09.
2019-07-01treewide: use dontUnpackworldofpeace1-1/+1
2019-06-02common-updater-scripts: simplify fetchgit fixJan Tojnar1-6/+2
No need to try evaluate the URL twice as introduced in the original fix https://github.com/NixOS/nixpkgs/commit/cce486838b6c52dedfec1c93f60ebadb72c48431
2019-06-02common-updater-scripts: keep the unescaped oldVersionJan Tojnar1-7/+7
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.
2019-05-06common-updater: Fix syntaxTim Steinbach1-1/+1
Missing space before closing ] in if statement caused syntax errors
2019-05-03common-updater-scripts: fix fallback version detectionJan Tojnar1-1/+1
parseDrvName returns a set containing version attribute, not our customizable key.
2019-04-06update-source-version: Fixes, add --ignore-same-hashTim Steinbach1-3/+10
--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
2019-03-02common-updater-scripts: Add file and system flagsJan Tojnar2-19/+69
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.
2019-02-11common-update-scripts: fixup for current/latest nix hash outputWill Dietz1-1/+1
Courtesy of @jtojnar, thanks! See https://github.com/NixOS/nixpkgs/issues/54962#issuecomment-459429698
2018-11-16common-updater, firefox: fix updater for firefoxtaku01-3/+8
2018-03-16common-updater: support updating source URLtaku01-2/+19
2018-02-17update-source-version: Fix regex metacharacterTuomas Tynkkynen1-1/+1
In sed variety of regexes, '\|' must be used in place of '|'.
2018-02-17common-update-scripts: fix compatibility with Nix unstableJan Tojnar1-1/+1
2017-12-26update-source-version: Name part of `name` can contain dashesTuomas Tynkkynen1-1/+1
2017-12-26update-source-version: Don't require whitespace around equals signTuomas Tynkkynen1-2/+2
2017-12-26update-source-version: More robust scanning for the output hashTuomas Tynkkynen1-1/+1
2017-12-26update-source-version: Less strict regex for `name = ...` linesTuomas Tynkkynen1-2/+2
2017-12-26update-source-version: Check for sources not dependent on ${version}Tuomas Tynkkynen1-0/+5
2017-12-26update-source-version: Escape plus sign if it occurs in versionTuomas Tynkkynen1-2/+2
2017-05-19common-updater-script: fix error handlingtaku01-2/+2
diffutils is required for cmp command
2017-02-19maintainers: Add script to patch version/sha256 in .nix filesTuomas Tynkkynen2-0/+109
Adds a script to help automatically upgrading packages: this one can patch name/version attributes like: version = "50.1.0"; name = "bc-1.06"; ... to the given version, and updates the sha256 hash to match. Usage is: update-source-version <attr> <new-version> [<new-source-hash>] where: - attr is the attribute path of the package - new-version is the version string to be patched in - new-source-hash is the optional sha256/etc. hash of the source. If not given, the script will automatically calculate it. This is added to a subdirectory where other useful scripts can be added in the future, like figuring out the newest version from a git repo or GitHub releases etc.