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
rubber: 1.3 -> 1.4 #21565
rubber: 1.3 -> 1.4 #21565
Conversation
@peterhoeg, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ttuegel, @FRidh and @Fuuzetsu to be potential reviewers. |
stdenv.mkDerivation rec { | ||
name = "rubber-1.3"; | ||
let | ||
pypkgs = python2Packages; |
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.
Please use either python2Packages
or pythonPackages
instead of a custom variable.
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.
The idea was to avoid having to specify python2Packages
3 times. If we need to move to python 3 at some point, that means changing only one variable.
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.
That would be a simple search & replace. In any case, you can still use the let expression but don't use another name; everywhere pythonPackages
is used so stick with it.
}; | ||
|
||
buildInputs = [ python2Packages.python texinfo ]; | ||
nativeBuildInputs = [ python2Packages.wrapPython ]; | ||
nativeBuildInputs = [ pypkgs.wrapPython ]; |
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.
wrapPython
is provided by buildPythonApplication
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.
Removed.
buildInputs = [ python2Packages.python texinfo ]; | ||
nativeBuildInputs = [ python2Packages.wrapPython ]; | ||
nativeBuildInputs = [ pypkgs.wrapPython ]; | ||
propagatedBuildInputs = [ pypkgs.python texinfo ]; |
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.
python as well
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.
Removed.
@FRidh, I ripped out the |
Thanks! |
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)