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