mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Revert "opensubdiv: Remove cudatoolkit from the closure"
This reverts commit 6a472cf4c1
. On
second thought, this is not a good idea, because it means that a
CUDA-enabled Blender doesn't work on non-CUDA systems anymore (since
they don't have libOpenCL.so in /run/opengl-driver). I guess a better
solution will be to split cudatoolkit into multiple outputs.
This commit is contained in:
parent
30e8d577f1
commit
1a9cf94ba2
@ -39,16 +39,7 @@ stdenv.mkDerivation {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall =
|
||||
''
|
||||
rm $out/lib/*.a
|
||||
'' + lib.optionalString cudaSupport ''
|
||||
# Drop cudatoolkit reference from the closure. We'll get
|
||||
# libOpenCL from /run/opengl-driver.
|
||||
s=${cudatoolkit}/lib
|
||||
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
|
||||
sed -i $out/lib/libosdGPU.so.* -e "s|$s|$t|g"
|
||||
'';
|
||||
postInstall = "rm $out/lib/*.a";
|
||||
|
||||
meta = {
|
||||
description = "An Open-Source subdivision surface library";
|
||||
|
Loading…
Reference in New Issue
Block a user