anchor.diff:          mkdir -p $out/nix-support
           echo "cmakeFlags+=' -DCUDA_TOOLKIT_ROOT_DIR=$out'" >> $out/nix-support/setup-hook
   
  -        # Move some libraries to the lib output so that programs that
  -        # depend on them don't pull in this entire monstrosity.
  -        mkdir -p $lib/lib
  -        mv -v $out/lib64/libOpenCL* $lib/lib/
  +        # Remove OpenCL libraries as they are provided by ocl-icd and driver.
  +        rm -f $out/lib64/libOpenCL*
   
         '' + lib.optionalString (lib.versionOlder version "8.0") ''
           # Hack to fix building against recent Glibc/GCC.
           echo "NIX_CFLAGS_COMPILE+=' -D_FORCE_INLINES'" >> $out/nix-support/setup-hook
         '';
   
  -      meta = {
  -        license = lib.licenses.unfree;
  +      meta = with stdenv.lib; {
  +        description = "A compiler for NVIDIA GPUs, math libraries, and tools";
  +        homepage = "https://developer.nvidia.com/cuda-toolkit";
  +        platforms = platforms.linux;
  +        license = licenses.unfree;
         };
       };
   
  
positive.code:             patchelf \
                --set-interpreter "''$(cat $NIX_CC/nix-support/dynamic-linker)" $i
            fi
            if [[ $i =~ libOpenCL ]]; then
              rpath2=
            else
              rpath2=$rpath:$lib/lib:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64
            fi
            patchelf --set-rpath $rpath2 --force-rpath $i
          done < <(find . -type f -print0)
        '';
  
negative.code:           }
          else throw "cudatoolkit does not support platform ${stdenv.system}";
  
        outputs = [ "out" "doc" ];
  
        buildInputs = [ perl ];
  
  