Skip to content
Discussion options

You must be logged in to vote

.override or .overrideNixCats is preferable to .overrideAttrs, you can use prev.packageDefinitions.whicheverpackage and change values from it. It is a defined interface of nixCats.

https://nixcats.org/nixCats_overriding.html#nixCats.overriding.packageDefinitions

Merge functions exist to help you deal with merging nested function results together to make this nicer, documented in the overriding help as well.

In addition, every package exports a module, which does a similar thing to override based on an existing package, if you would prefer to use that, but then you have to have some way to eval modules (nixos, home manager, nix darwin), which can be hard to do in dev shells (would require …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rafaeljacov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants