pythonPackages.libgpuarray: enable darwin build
This commit is contained in:
parent
357d8f600c
commit
d96f0c5682
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
|||||||
libraryPath = lib.makeLibraryPath (
|
libraryPath = lib.makeLibraryPath (
|
||||||
[]
|
[]
|
||||||
++ lib.optionals cudaSupport [ cudatoolkit.lib cudatoolkit.out ]
|
++ lib.optionals cudaSupport [ cudatoolkit.lib cudatoolkit.out ]
|
||||||
++ lib.optionals openclSupport [ ocl-icd clblas ]
|
++ lib.optionals openclSupport ([ clblas ] ++ lib.optional (!stdenv.isDarwin) ocl-icd)
|
||||||
);
|
);
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
@ -47,7 +47,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
rm $out/lib/libgpuarray-static.a
|
rm $out/lib/libgpuarray-static.a
|
||||||
|
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||||
function fixRunPath {
|
function fixRunPath {
|
||||||
p=$(patchelf --print-rpath $1)
|
p=$(patchelf --print-rpath $1)
|
||||||
patchelf --set-rpath "$p:$libraryPath" $1
|
patchelf --set-rpath "$p:$libraryPath" $1
|
||||||
@ -75,7 +75,7 @@ buildPythonPackage rec {
|
|||||||
description = "Library to manipulate tensors on GPU.";
|
description = "Library to manipulate tensors on GPU.";
|
||||||
license = licenses.free;
|
license = licenses.free;
|
||||||
maintainers = with maintainers; [ artuuge ];
|
maintainers = with maintainers; [ artuuge ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user