You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fetchFromGitHub: use passthru instead of // to support overrideAttrs #370418
unfortunately, the last line is messing up the overrideAttrs interface: because // is used on the derivation itself overrideAttrs doesn't know about their existance and thus deletes them if we try to .overrideAttrs the result of fetchFromGitHub.
Possible solution
passthru is a method for achieving the same thing, aka. appending extra information onto a derivation, but from the inside. It's also supported by overrideAttrs.
it would be much better, however fetchgit currently doesn't support passing passthru, so we'd also need to change that.
(Though, meta should probably not be part of passthru if we did this)
Note
I know there's a .override interface over fetchFromGitHub, however that's not "generic" enough. .overrideAttrs should work with any kind of fetcher.
It would be amazing if we could be able to do something like this and not have to worry about implementation details of the src FOD.
Activity
philiptaron commentedon Jan 3, 2025
Yes!
ShamrockLee commentedon Nov 27, 2025
@TomaSajt Now that #456751 is merged. Could we close this issue?
TomaSajt commentedon Nov 28, 2025
Closed via #456751