Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example override #13

Open
skeet70 opened this issue Oct 9, 2024 · 1 comment
Open

Example override #13

skeet70 opened this issue Oct 9, 2024 · 1 comment

Comments

@skeet70
Copy link

skeet70 commented Oct 9, 2024

The readme mentions needing to override packages to set their hash if missing. An example of doing that would be helpful. I'm a nix beginner-intermediate and I've been trying the ways I've overridden/overlaid packages in the past, but have so far failed to set the hash.

@xav-ie
Copy link

xav-ie commented Oct 17, 2024

You can do it like this:
https://github.com/xav-ie/dots/blob/b102f6143d0c65069199751a0d7515aca017cc18/modules/home-manager/darwin/default.nix#L16-L21

with overrideAttrs, you kind of have to redefine the whole thing, that is why I must grab the previous src. I am no nix expert either, but this works.

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

No branches or pull requests

2 participants