libgpuarray: add nvidia_x11 as dependency when cudaSupport
This commit is contained in:
parent
a298167152
commit
6d8bf113bd
@ -9,10 +9,13 @@
|
||||
, nose
|
||||
, Mako
|
||||
, python
|
||||
, cudaSupport ? false, cudatoolkit
|
||||
, cudaSupport ? false, cudatoolkit , nvidia_x11
|
||||
, openclSupport ? true, ocl-icd, clblas
|
||||
}:
|
||||
|
||||
assert cudaSupport -> nvidia_x11 != null
|
||||
&& cudatoolkit != null;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libgpuarray";
|
||||
version = "0.7.5";
|
||||
@ -32,7 +35,7 @@ buildPythonPackage rec {
|
||||
|
||||
libraryPath = lib.makeLibraryPath (
|
||||
[]
|
||||
++ lib.optionals cudaSupport [ cudatoolkit.lib cudatoolkit.out ]
|
||||
++ lib.optionals cudaSupport [ cudatoolkit.lib cudatoolkit.out nvidia_x11 ]
|
||||
++ lib.optionals openclSupport ([ clblas ] ++ lib.optional (!stdenv.isDarwin) ocl-icd)
|
||||
);
|
||||
|
||||
|
@ -7114,6 +7114,7 @@ in {
|
||||
libgpuarray = callPackage ../development/python-modules/libgpuarray {
|
||||
clblas = pkgs.clblas.override { boost = self.boost; };
|
||||
cudaSupport = pkgs.config.cudaSupport or false;
|
||||
inherit (pkgs.linuxPackages) nvidia_x11;
|
||||
};
|
||||
|
||||
librepo = toPythonModule (pkgs.librepo.override {
|
||||
|
Loading…
Reference in New Issue
Block a user