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

Document you can use a 'src' attribute in hackage-packages.nix #480

Merged
merged 3 commits into from Apr 12, 2021

Conversation

raboof
Copy link
Member

@raboof raboof commented Jan 29, 2021

No description provided.

Copy link
Member

@peti peti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's typically a bad idea to edit hackage-packages.nix directly and I would rather not suggest that people do that in the official documentation. The proper way to change the src attribute of an existing derivation is to create an override with overrideSrc function. You can look at the case of git-annex for an example: https://github.com/NixOS/nixpkgs/blob/99eeda9fdbd36022694f413f9d79fd626b95e849/pkgs/development/haskell-modules/configuration-common.nix#L62-L68

@raboof
Copy link
Member Author

raboof commented Feb 17, 2021

The proper way to change the src attribute of an existing derivation is to create an override with overrideSrc function.

Thanks, updated!

@peti peti merged commit e18310f into NixOS:master Apr 12, 2021
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.

None yet

2 participants