mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
1d63f89caa
There are many different versions of the `cudatoolkit` and related cuda packages, and it can be tricky to ensure they remain compatible. - `cudaPackages` is now a package set with `cudatoolkit`, `cudnn`, `cutensor`, `nccl`, as well as `cudatoolkit` split into smaller packages ("redist"); - expressions should now use `cudaPackages` as parameter instead of the individual cuda packages; - `makeScope` is now used, so it is possible to use `.overrideScope'` to set e.g. a different `cudnn` version; - `release-cuda.nix` is introduced to easily evaluate cuda packages using hydra.
15 lines
390 B
Bash
15 lines
390 B
Bash
# Run autoOpenGLRunpath on all files
|
|
echo "Sourcing auto-add-opengl-runpath-hook"
|
|
|
|
autoAddOpenGLRunpathPhase () {
|
|
# TODO: support multiple outputs
|
|
for file in $(find ${out,lib,bin} -type f); do
|
|
addOpenGLRunpath $file
|
|
done
|
|
}
|
|
|
|
if [ -z "${dontUseAutoAddOpenGLRunpath-}" ]; then
|
|
echo "Using autoAddOpenGLRunpathPhase"
|
|
postFixupHooks+=(autoAddOpenGLRunpathPhase)
|
|
fi
|