summary refs log tree commit diff
path: root/pkgs/development/python-modules/libgpuarray
diff options
context:
space:
mode:
authorJosef Kemetmüller <josef.kemetmueller@gmail.com>2018-04-15 18:34:45 +0200
committerJosef Kemetmüller <josef.kemetmueller@gmail.com>2018-04-15 18:34:45 +0200
commitd96f0c5682a63e0eef72899a4e52164e1dde4e97 (patch)
tree8a2189077f6c83b5cd4c6df80769e093ba862d82 /pkgs/development/python-modules/libgpuarray
parent357d8f600c943965d91ca810db9e6ca6a481b6a5 (diff)
downloadnixpkgs-d96f0c5682a63e0eef72899a4e52164e1dde4e97.tar
nixpkgs-d96f0c5682a63e0eef72899a4e52164e1dde4e97.tar.gz
nixpkgs-d96f0c5682a63e0eef72899a4e52164e1dde4e97.tar.bz2
nixpkgs-d96f0c5682a63e0eef72899a4e52164e1dde4e97.tar.lz
nixpkgs-d96f0c5682a63e0eef72899a4e52164e1dde4e97.tar.xz
nixpkgs-d96f0c5682a63e0eef72899a4e52164e1dde4e97.tar.zst
nixpkgs-d96f0c5682a63e0eef72899a4e52164e1dde4e97.zip
pythonPackages.libgpuarray: enable darwin build
Diffstat (limited to 'pkgs/development/python-modules/libgpuarray')
-rw-r--r--pkgs/development/python-modules/libgpuarray/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/libgpuarray/default.nix b/pkgs/development/python-modules/libgpuarray/default.nix
index c0c2b205f58..26fe33995ed 100644
--- a/pkgs/development/python-modules/libgpuarray/default.nix
+++ b/pkgs/development/python-modules/libgpuarray/default.nix
@@ -33,7 +33,7 @@ buildPythonPackage rec {
   libraryPath = lib.makeLibraryPath (
     []
     ++ lib.optionals cudaSupport [ cudatoolkit.lib cudatoolkit.out ]
-    ++ lib.optionals openclSupport [ ocl-icd clblas ]
+    ++ lib.optionals openclSupport ([ clblas ] ++ lib.optional (!stdenv.isDarwin) ocl-icd)
   );
 
   preBuild = ''
@@ -47,7 +47,7 @@ buildPythonPackage rec {
 
   postFixup = ''
     rm $out/lib/libgpuarray-static.a
-
+  '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
     function fixRunPath {
       p=$(patchelf --print-rpath $1)
       patchelf --set-rpath "$p:$libraryPath" $1
@@ -75,7 +75,7 @@ buildPythonPackage rec {
     description = "Library to manipulate tensors on GPU.";
     license = licenses.free;
     maintainers = with maintainers; [ artuuge ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 
 }