1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +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:
Eelco Dolstra 2017-02-14 11:16:37 +01:00
parent 30e8d577f1
commit 1a9cf94ba2
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -39,16 +39,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true; enableParallelBuilding = true;
postInstall = postInstall = "rm $out/lib/*.a";
''
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"
'';
meta = { meta = {
description = "An Open-Source subdivision surface library"; description = "An Open-Source subdivision surface library";