Skip to content

Documentation: document pitfalls with overrideAttrs #266485

@fricklerhandwerk

Description

@fricklerhandwerk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md9.needs: documentationThis needs to be documented well.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions