Skip to content

overrideAttrs on result of fetchFromGitHub does not re-add fields #444503

Open

Description

@ConnorBaker

As discovered with @djacu, using overrideAttrs on the derivation returned by fetchFromGitHub results in a derivation without the fields added after application of fetcher to fetcherArgs:

fetcher fetcherArgs
// {
meta = newMeta;
inherit owner repo tag;
rev = revWithTag;
}

One solution is to have both fetcher implementation accept variable arguments and pass through those which are not explicitly used; this would allow additional customization of the implementation, such as setting meta or env.

Activity

  1. self-assigned this
    on Sep 20, 2025
  2. added
    0.kind: bug
    on Sep 20, 2025
  3. added
    2.status: stale
    on Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

0.kind: bug2.status: stale

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions