-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
mongodb: 4.0.12 -> 4.2.5 #84320
mongodb: 4.0.12 -> 4.2.5 #84320
Conversation
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.
Why two Python 3 scons versions? I don't think we should do that. Have only one. I also suggest splitting the whole scons change into a separate PR.
pname = "cheetah3"; | ||
version = "3.2.4"; | ||
|
||
src = fetchurl { |
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.
fetchPypi
please read the Python section from the Nixpkgs manual
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.
I can't seem to get the package via fetchPypi. Not sure as to what is the reason for that. fetchPypi tries the domains files.pythonhosted.org
and pypi.io
and fails with both.
@@ -16,7 +16,7 @@ buildPythonPackage rec { | |||
|
|||
# arch doesn't report frequency is the same way | |||
# tests segfaults on darwin https://github.com/giampaolo/psutil/issues/1715 | |||
doCheck = stdenv.isDarwin || stdenv.isx86_64; | |||
doCheck = if stdenv.isDarwin then false else stdenv.isx86_64; |
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.
Why disable tests?
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.
For psutil tests don't work on darwin see: #82524
mongodb 4.2 seems to need a scons version that was built by a python3 interpreter. The current version seems to be built by python 2.7, see https://github.com/NixOS/nixpkgs/blob/9ec439e009098b3132848c525a033a602f74faed/pkgs/development/tools/build-managers/scons/common.nix I can split that into a separate PR, no problem. |
@@ -0,0 +1,84 @@ | |||
sconsBuildPhase() { |
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.
is this a copy of the existing setup hook?
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.
yes.
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.
Regarding SCons: That change for Python 3 shouldn't be required anymore as we finally merged #75877 which is now also in master
. After a rebase you should be able to drop these SCons changes.
@GrahamcOfBorg eval |
Anything specific blocking this PR? Would be nice to have it merged. As a side note: would it be possible to get mongodb to be built by hydra and included in binary chance again? Even though the licence is not officially recognised as “free” by FSF there is nothing in it that should detract from building and redistributing the binary. |
@kfiz thanks for opening a PR, sorry it seems that your efforts were shadowed by another commit. But I agree that this should probably be closed now that there's a newer version on master |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)