Skip to content

add patches attribute for pins#238

Draft
Janik-Haag wants to merge 2 commits into
andir:masterfrom
Janik-Haag:patches
Draft

add patches attribute for pins#238
Janik-Haag wants to merge 2 commits into
andir:masterfrom
Janik-Haag:patches

Conversation

@Janik-Haag
Copy link
Copy Markdown

Some glue code to make patching pins more convenient, motivated by #141.

I'm not too happy with passing pkgs and patches to every pin individually, but that seems like the most obvious path forward, since the api already exists.

Also, not sure if we want to couple patches and nixpkgs fetchers.
If we want to decouple them, but keep the same api, I'd probably add an attribute like nixpkgsFetcher ? true to mkSource. This would keep the existing api compatible but would also allow the user to toggle the behavior if they wish to. I can imagine this being useful for the nixpkgs pin, so you can patch it without having to fetch it twice.

The test is a bit shit, before merging it should probably be improved. Currently, if the patch can't be applied it still succeeds and is completely silent about the failure in the logs (bash is horrible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant