libgpuarray: add nvidia_x11 as dependency when cudaSupport

This commit is contained in:
Stefan Matting 2018-05-13 14:17:32 +02:00
parent a298167152
commit 6d8bf113bd
2 changed files with 6 additions and 2 deletions

View File

@ -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)
);

View File

@ -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 {