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
Update python.md #23669
Update python.md #23669
Conversation
this makes it clear how to alter `attributes` by using `packageOverrides`
@qknight, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh, @alexeymuranov and @bennofs to be potential reviewers. |
doc/languages-frameworks/python.md
Outdated
|
||
```nix | ||
nixpkgs.config.packageOverrides = super: { | ||
pythonPackages = super.pythonPackages // { bepasty-server = super.python27Packages.bepasty-server.overrideAttrs (oldAttrs: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not quite sure if we should recommend this, since this will not affect dependent python packages. A better approach is this, I believe:
pythonPackages = super.pythonPackages.override {
overrides = self: super: {
bepasty-server = super.bepasty-server.overrideAttrs { ... }
};
}
doc/languages-frameworks/python.md
Outdated
src = pkgs.fetchgit { | ||
url = "https://github.com/bepasty/bepasty-server"; | ||
sha256 = "9ziqshmsf0rjvdhhca55sm0x8jz76fsf2q4rwh4m6lpcf8wr0nps"; | ||
#sha256 = "5ziqshmsf0rjvdhhca55sm0x8jz76fsf2q4rwh4m6lpcf8wr0nps"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove old urls and fix indentation
A couple more comments:
|
|
thanks everyone for the feedback! |
* Update python.md this makes it clear how to alter `attributes` by using `packageOverrides` * Update python.md * Update python.md * Update python.md * Update python.md * Update python.md * Update python.md (cherry picked from commit 91debcb)
this makes it clear how to alter
attributes
by usingpackageOverrides