summaryrefslogtreecommitdiff
path: root/pkgs/common-updater/scripts/update-source-version (follow)
Commit message (Expand)AuthorAgeFilesLines
* pkgs: update-source-version: Fix packages upgrade in overlay.local/masterlocal/HEADOleg Pykhalov2020-11-271-9/+9
* common-updater-scripts: add --rev to update-source-version•••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. Francesco Gazzetta2020-11-211-1/+20
* common-updater-scripts: add --print-changes flag•••Printing the changed file and new version can be used to commit the changes to git. Jan Tojnar2020-09-191-1/+11
* common-updater-scripts: Fix replacing SRI hashes•••SRI hashes (base64 encoded) can contain + sign which is a special character in extended regular expressions so it needs to be escaped. Jan Tojnar2020-02-201-2/+6
* common-updater-scripts: Handle errors in src hashing•••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. Jan Tojnar2020-02-201-5/+5
* common-updater-scripts: move destructive changes further in the script•••We can check some things before the modifications take place. Jan Tojnar2020-02-041-15/+15
* common-updater-scripts: clean up•••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. Jan Tojnar2020-02-041-19/+19
* common-updater-scripts: Support SRI-style hash•••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. Jan Tojnar2020-02-041-0/+23
* common-updater-scripts: mention --ignore-same-hash in usageJan Tojnar2020-02-041-0/+1
* common-updater-scripts: Fix breakage•••Fixes a bug introduced by 9b090ccbca3f7dd26d91db06e96e8bf8282c37ca where the script fails to run if $attr.${versionKey} exists. talyz2019-11-261-1/+1
* treewide: Get rid of most `parseDrvName` without breaking compat•••That is because this commit should be merged to both master and release-19.09. John Ericson2019-11-241-2/+2
* common-updater-scripts: simplify fetchgit fix•••No need to try evaluate the URL twice as introduced in the original fix https://github.com/NixOS/nixpkgs/commit/cce486838b6c52dedfec1c93f60ebadb72c48431 Jan Tojnar2019-06-021-6/+2
* common-updater-scripts: keep the unescaped oldVersion•••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. Jan Tojnar2019-06-021-7/+7
* common-updater: Fix syntax•••Missing space before closing ] in if statement caused syntax errors Tim Steinbach2019-05-061-1/+1
* common-updater-scripts: fix fallback version detection•••parseDrvName returns a set containing version attribute, not our customizable key. Jan Tojnar2019-05-031-1/+1
* update-source-version: Fixes, add --ignore-same-hash•••--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 Tim Steinbach2019-04-061-3/+10
* common-updater-scripts: Add file and system flags•••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. Jan Tojnar2019-03-021-17/+67
* common-update-scripts: fixup for current/latest nix hash output•••Courtesy of @jtojnar, thanks! See https://github.com/NixOS/nixpkgs/issues/54962#issuecomment-459429698 Will Dietz2019-02-111-1/+1
* common-updater, firefox: fix updater for firefoxtaku02018-11-161-3/+8
* common-updater: support updating source URLtaku02018-03-161-2/+19
* update-source-version: Fix regex metacharacter•••In sed variety of regexes, '\|' must be used in place of '|'. Tuomas Tynkkynen2018-02-171-1/+1
* common-update-scripts: fix compatibility with Nix unstableJan Tojnar2018-02-171-1/+1
* update-source-version: Name part of `name` can contain dashesTuomas Tynkkynen2017-12-261-1/+1
* update-source-version: Don't require whitespace around equals signTuomas Tynkkynen2017-12-261-2/+2
* update-source-version: More robust scanning for the output hashTuomas Tynkkynen2017-12-261-1/+1
* update-source-version: Less strict regex for `name = ...` linesTuomas Tynkkynen2017-12-261-2/+2
* update-source-version: Check for sources not dependent on ${version}Tuomas Tynkkynen2017-12-261-0/+5
* update-source-version: Escape plus sign if it occurs in versionTuomas Tynkkynen2017-12-261-2/+2
* maintainers: Add script to patch version/sha256 in .nix files•••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. Tuomas Tynkkynen2017-02-191-0/+91