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.
As discovered with @djacu, using
overrideAttrson the derivation returned byfetchFromGitHubresults in a derivation without the fields added after application offetchertofetcherArgs:nixpkgs/pkgs/build-support/fetchgithub/default.nix
Lines 159 to 164 in 2a84f9e
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
metaorenv.