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
Chemistry-related commits, jmol init, bumped pymol, avogadro and tidied up all-packages.nix #31876
Conversation
Previous version of avogadro didn't build on current master (it said that |
src = fetchFromGitHub { | ||
owner = "cryos"; | ||
repo = "avogadro"; | ||
rev = "92e20f0072c51badd0849eb354b5cf4bfd05e6a3"; |
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.
you can specify a tag as revision 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.
Should I change it?
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.
just personal taste, but pinning a package to a git tag explicitly shows me that this no random/unstable stuff from GitHub :-)
pkgs/top-level/all-packages.nix
Outdated
@@ -14250,9 +14244,6 @@ with pkgs; | |||
|
|||
docker-machine = callPackage ../applications/networking/cluster/docker-machine { }; | |||
docker-machine-kvm = callPackage ../applications/networking/cluster/docker-machine/kvm.nix { }; | |||
docker-machine-xhyve = callPackage ../applications/networking/cluster/docker-machine/xhyve.nix { |
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 do you remove this? This seems unrelated to the other changes in this PR.
}; | ||
in | ||
stdenv.mkDerivation { | ||
name = "jmol"; |
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 append a version number at the end of the name.
src = fetchFromGitHub { | ||
owner = "cryos"; | ||
repo = "avogadro"; | ||
rev = "8ac8408ac6113d375cdcaf233f89854a23fa280c"; |
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.
@Ma27 I used a non-tagged version here, because the tagged 1.2.0 one uses eigen 3.2, which is no longer packaged.
Building avogradro fails with
|
I didn't check it with sandbox yet, will have a look at it, but I can't do so currently. |
I can build it without sandboxing but the binary crashes with: "Invalid OpenGL context. The problem with the sandbox is that a build process on nix should not download things. A better way to solve this would be to let nix download yaehmop and patch the cmake file to pick the version from the nix store (see e.g. https://github.com/NixOS/nixpkgs/blob/31637d09413c871b030c021eecf3abcee7c8b160/pkgs/applications/misc/nrsc5/default.nix). |
When I try to run it on NixOS it segfaults without any further messages.
|
It was quite a bit earlier that I made this pull request and it did build at the then current nixpkgs master. Also, I didn't remember it downloading something outside of nixpkgs, probably it didn't cause a problem then. On non-nixos distros I believe that nothing works that need opengl without setting it up (nix doesn't link graphic libraries by default, it tries to find theme inside /run, this is the only non-pure part as far as I know, you can find an issue with a partial solution somewhere that uses the system libs with LD_LIBRARY_PATH, I think). As for the NixOS part, there definitely is some sort of problem, will try to repackage it, but can only do so tomorrow evening. Maybe try to change to a more recent revision of avogadro if you have the time/need it sooner. It's a tricky package, last time I tried it didn't even work on arch linux for some reason |
Thanks for the OpenGL tip. I have tried avogadro 1.2.0, but the segfault problem on NixOS is the same. |
Strange thing is that it builds for me without trouble (although I didn't try with sandbox yet), and I can run it even on current master.. Did you fork this branch and built that, or did you just cherry-pick my commits? Maybe try the latter one once more, I really don't know what could be the problem.. |
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)