-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Documentation: document pitfalls with overrideAttrs #266485
Copy link
Copy link
Open
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md9.needs: documentationThis needs to be documented well.This needs to be documented well.
Description
Problem
There is a common pitfall when using overrideAttrs on attributes that are coupled, such as version and url.
Related: NixOS/nix.dev#762
Proposal
Show the pitfall and a common resolution, refer to finalAttrs and how to do it properly if it's available.
Checklist
- checked latest Nixpkgs manual (source) and latest NixOS manual (source)
- checked open documentation issues for possible duplicates
- checked open documentation pull requests for possible solutions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md9.needs: documentationThis needs to be documented well.This needs to be documented well.
Fields
Give feedbackNo fields configured for issues without a type.