about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorStefan Matting <stefan.matting@gmail.com>2018-05-13 14:17:32 +0200
committerStefan Matting <stefan.matting@gmail.com>2018-05-13 14:19:16 +0200
commit6d8bf113bd9630c7671065871b5b60a4127ec985 (patch)
tree752277548a62e71b18f97b35da7d02fabb888e0d /pkgs/development/python-modules
parenta2981671523416ad5c9a49de8c16ac8fccb2306b (diff)
downloadnixlib-6d8bf113bd9630c7671065871b5b60a4127ec985.tar
nixlib-6d8bf113bd9630c7671065871b5b60a4127ec985.tar.gz
nixlib-6d8bf113bd9630c7671065871b5b60a4127ec985.tar.bz2
nixlib-6d8bf113bd9630c7671065871b5b60a4127ec985.tar.lz
nixlib-6d8bf113bd9630c7671065871b5b60a4127ec985.tar.xz
nixlib-6d8bf113bd9630c7671065871b5b60a4127ec985.tar.zst
nixlib-6d8bf113bd9630c7671065871b5b60a4127ec985.zip
libgpuarray: add nvidia_x11 as dependency when cudaSupport
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/libgpuarray/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/libgpuarray/default.nix b/pkgs/development/python-modules/libgpuarray/default.nix
index 26fe33995ed8..14e83584678c 100644
--- a/pkgs/development/python-modules/libgpuarray/default.nix
+++ b/pkgs/development/python-modules/libgpuarray/default.nix
@@ -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)
   );