From 1a9cf94ba2ddd169f15e751cacd1847f97cdc8d3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Feb 2017 11:16:37 +0100 Subject: [PATCH] Revert "opensubdiv: Remove cudatoolkit from the closure" This reverts commit 6a472cf4c1b78580de79c79ca7d7b714f4d8d36e. 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. --- pkgs/development/libraries/opensubdiv/default.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pkgs/development/libraries/opensubdiv/default.nix b/pkgs/development/libraries/opensubdiv/default.nix index f5f84ee1546..b253a27a7db 100644 --- a/pkgs/development/libraries/opensubdiv/default.nix +++ b/pkgs/development/libraries/opensubdiv/default.nix @@ -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";