cudatoolkit: fixup path to samples

This is needed for cuda 6.5 or else nsight will not find them. In cuda 7.0 the
samples are already in $out/samples. Older versions do not build due to broken
dependency (python-minimal).
This commit is contained in:
Bjørn Forsman 2015-08-18 12:22:21 +02:00
parent 8f2ddf98f2
commit 836fa19651

View file

@ -63,6 +63,11 @@ in stdenv.mkDerivation rec {
# let's remove the 32-bit libraries, they confuse the lib64->lib mover # let's remove the 32-bit libraries, they confuse the lib64->lib mover
rm -rf $out/lib rm -rf $out/lib
# Fixup path to samples (needed for cuda 6.5 or else nsight will not find them)
if [ -d "$out"/cuda-samples ]; then
mv "$out"/cuda-samples "$out"/samples
fi
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;