mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-08-16 17:40:41 +03:00
document use of meta, src, and originalSrc attrs
This commit is contained in:
parent
773fe79646
commit
85698069ff
@ -66,6 +66,8 @@ Some attrpaths have versions appended to the end of them, like `ruby_3_0`, the n
|
||||
|
||||
If `nix edit $attrpath` does not open the correct file that contains the version string and fetcher hash, the update will fail.
|
||||
|
||||
This might not work, for example, if a package doesn't have a `meta` attr (at all, or if the package uses a builder function that is discarding the `meta` attr).
|
||||
|
||||
### Update already merged
|
||||
|
||||
If the update is already on `master`, `staging`, or `staging-next`, the update will fail.
|
||||
@ -74,6 +76,8 @@ If the update is already on `master`, `staging`, or `staging-next`, the update w
|
||||
|
||||
If the derivation file has no hash or source URL, it will fail.
|
||||
|
||||
Since `nixpkgs-update` is trying to read these from `<pkg>.src`, this can also happen if the package's source is something unexpected such as another package. You can set the fallback `originalSrc` attr so that `nixpkgs-update` can find the correct source in cases like this.
|
||||
|
||||
### No updateScript and no version
|
||||
|
||||
If the derivation file has no version and no updateScript, it will fail.
|
||||
|
Loading…
Reference in New Issue
Block a user