yoda: refactor root support to be more explicit

This commit is contained in:
Dmitry Kalinkin
2017-04-03 03:48:22 -04:00
parent 23f7087dc5
commit a07d334bf4
2 changed files with 7 additions and 6 deletions
@@ -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;