yoda: refactor root support to be more explicit
This commit is contained in:
parent
23f7087dc5
commit
a07d334bf4
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, python2Packages, root, makeWrapper }:
|
||||
{ stdenv, fetchurl, python2Packages, root, makeWrapper, withRootSupport ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "yoda-${version}";
|
||||
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
pythonPath = []; # python wrapper support
|
||||
|
||||
buildInputs = with python2Packages; [ python numpy matplotlib root makeWrapper ];
|
||||
buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]
|
||||
++ stdenv.lib.optional withRootSupport root;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
@ -17698,10 +17698,10 @@ with pkgs;
|
||||
|
||||
thepeg = callPackage ../development/libraries/physics/thepeg { };
|
||||
|
||||
yoda = callPackage ../development/libraries/physics/yoda {
|
||||
root = null;
|
||||
};
|
||||
yoda-with-root = lowPrio (callPackage ../development/libraries/physics/yoda { });
|
||||
yoda = callPackage ../development/libraries/physics/yoda { };
|
||||
yoda-with-root = lowPrio (callPackage ../development/libraries/physics/yoda {
|
||||
withRootSupport = true;
|
||||
});
|
||||
|
||||
### MISC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user