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
geant4: v10.0.2 -> v10.4.1, define datasets seperately, add dependencies for enableInventor #39514
Conversation
I've never seen the usage of |
meta = { | ||
homepage = http://www.coin3d.org/; | ||
license = stdenv.lib.licenses.bsd3; | ||
description = "High-level, retained-mode toolkit for effective 3D graphics development"; |
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.
Perhaps "A GUI binding for using Open Inventor with Xt/Motif"
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 sounds good to me.
This is coming together well. Could you please squash the geant4 changes after you are done with it? |
''; | ||
|
||
inherit envvar; | ||
setupHook = writeTextFile { |
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 have my doubts about this. I see that writeTextFile
is not used for static files in pkgs/
, I wonder if it would be better to stick with regular file here 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.
I figured since the setup hooks were to small they could just be inlined. Is writeTextFile
meant to be used in another way?
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 would not be surprised if there is some nasty corner case with it. I suppose I know one relatively harmless side-effect: if I'm not mistaken, the writeTextFile
is a derivation and will "build" a new file for each architecture.
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.
Well, it does make sense to store the hook within the actual derivation. I'll revert back to regular files.
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 kind of agree with you, but that discussion goes beyond the scope of this PR.
|
||
setupHook = ./setup-hook.sh; | ||
setupHook = writeTextFile { |
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.
ditto
I'll squash the geant4 changes when I figure out how to do it around the merges with master. |
That should do it. |
@@ -0,0 +1,103 @@ | |||
{ stdenv, fetchurl, writeTextFile }: |
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.
don't need writeTextFile
@@ -8,7 +8,7 @@ | |||
, enableRaytracerX11 ? false | |||
|
|||
# Standard build environment with cmake. | |||
, stdenv, fetchurl, cmake | |||
, stdenv, fetchurl, writeTextFile, cmake |
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.
ditto
setupHook = ./geant4-hook.sh; | ||
|
||
passthru = { | ||
data = import ./datasets.nix { inherit stdenv fetchurl writeTextFile; }; |
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.
ditto
Thanks; fixed. |
@GrahamcOfBorg build geant4.v10_0_2 geant4.v10_4_1 |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: geant4.v10_0_2, geant4.v10_4_1 Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: geant4.v10_0_2, geant4.v10_4_1 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: geant4.v10_0_2, geant4.v10_4_1 Partial log (click to expand)
|
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.
Checked against examples/basic/B1, was able to simulate events using data files. X11/OpenGl visual would not work for me, but thats probably due to my setup.
I will address some remaining issues with geant4 in a separate PR after this gets merged.
homepage = http://www.coin3d.org/; | ||
license = stdenv.lib.licenses.bsd3; | ||
description = "A GUI binding for using Open Inventor with Xt/Motif"; | ||
maintainers = []; |
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.
Would you like to add yourself as a maintainer here 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.
Might as well.
…enableInventor By seperating the datasets, geant4 now builds in a sandbox. Resolves NixOS#39766
@GrahamcOfBorg build geant4.v10_0_2 geant4.v10_4_1 soxt |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: geant4.v10_0_2, geant4.v10_4_1, soxt Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: geant4.v10_0_2, geant4.v10_4_1, soxt Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: geant4.v10_0_2, geant4.v10_4_1, soxt Partial log (click to expand)
|
Motivation for this change
Add another version of geant4 sources and define all related datasets in a seperate set of derivations.
Dependencies for geant4's
enableInventor
flag has been added (soxt).Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)