summary refs log tree commit diff
path: root/pkgs/common-updater
Commit message (Collapse)AuthorAge
* 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
|
* common-updater: support updating source URLtaku02018-03-16
|
* update-source-version: Fix regex metacharacterTuomas Tynkkynen2018-02-17
| | | | In sed variety of regexes, '\|' must be used in place of '|'.
* common-update-scripts: fix compatibility with Nix unstableJan Tojnar2018-02-17
|
* update-source-version: Name part of `name` can contain dashesTuomas Tynkkynen2017-12-26
|
* update-source-version: Don't require whitespace around equals signTuomas Tynkkynen2017-12-26
|
* update-source-version: More robust scanning for the output hashTuomas Tynkkynen2017-12-26
|
* update-source-version: Less strict regex for `name = ...` linesTuomas Tynkkynen2017-12-26
|
* update-source-version: Check for sources not dependent on ${version}Tuomas Tynkkynen2017-12-26
|
* update-source-version: Escape plus sign if it occurs in versionTuomas Tynkkynen2017-12-26
|
* common-updater-script: fix error handlingtaku02017-05-19
| | | | diffutils is required for cmp command
* maintainers: Add script to patch version/sha256 in .nix filesTuomas Tynkkynen2017-02-19
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.