summary refs log tree commit diff
path: root/pkgs/common-updater
Commit message (Collapse)AuthorAge
* 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.
* treewide: use dontUnpackworldofpeace2019-07-01
|
* 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
|
* 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.