nixpkgs/doc/languages-frameworks
Yann Hamdaoui 63746cac08
cudaPackages: generalize and refactor setup hook
This PR refactor CUDA setup hooks, and in particular
autoAddOpenGLRunpath and autoAddCudaCompatRunpathHook, that were using a
lot of code in common (in fact, I introduced the latter by copy pasting
most of the bash script of the former). This is not satisfying for
maintenance, as a recent patch showed, because we need to duplicate
changes to both hooks.

This commit abstract the common part in a single shell script that
applies a generic patch action to every elf file in the output. For
autoAddOpenGLRunpath the action is just addOpenGLRunpath (now
addDriverRunpath), and is few line function for
autoAddCudaCompatRunpathHook.

Doing so, we also takes the occasion to use the newer addDriverRunpath
instead of the previous addOpenGLRunpath, and rename the CUDA hook to
reflect that as well.

Co-Authored-By: Connor Baker <connor.baker@tweag.io>
2024-03-15 15:54:21 +01:00
..
agda.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
android.section.md
beam.section.md Merge pull request #233587 from Munksgaard/fix-beam-modules-quotation-marks 2024-02-01 18:49:45 +00:00
bower.section.md Merge pull request #237068 from pennae/manual-normalization 2023-06-13 07:35:06 +02:00
chicken.section.md chickenPackages: turn into scope 2023-08-21 17:00:00 +02:00
coq.section.md Remove top level with lib; in docs (#293829) 2024-03-06 22:35:43 +01:00
crystal.section.md
cuda.section.md cudaPackages: generalize and refactor setup hook 2024-03-15 15:54:21 +01:00
cuelang.section.md
dart.section.md docs/dart: Update unstable version example 2024-01-29 00:06:18 +01:00
dhall.section.md fixup note on dhall-to-nixpkgs example 2023-11-02 17:38:03 +01:00
dotnet.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
emscripten.section.md stdenv: substituteStream: deprecate --replace in favor of --replace-{fail,warn,quiet} 2024-01-14 22:07:58 +01:00
gnome.section.md Merge pull request #237068 from pennae/manual-normalization 2023-06-13 07:35:06 +02:00
go.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
haskell.section.md doc/haskell: don't use lib.recursiveUpdate in overlays 2024-01-31 23:49:32 +01:00
hy.section.md
idris2.section.md doc: update idris2 documentation on buildIdris 2024-01-23 23:35:17 -06:00
idris.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
index.md doc: idris2 section 2024-01-15 18:19:53 -06:00
ios.section.md doc: correct typos and spelling (#237098) 2023-06-11 02:15:43 +02:00
java.section.md
javascript.section.md Merge pull request #289231 from adisbladis/fetchnpmlock 2024-03-08 15:14:37 +13:00
julia.section.md julia docs: one line per sentence 2023-12-18 16:25:16 +01:00
lisp.section.md treewide: fix redirected and broken URLs 2023-11-11 10:49:01 +01:00
lua.section.md doc/lua.section.md: update lua documentation 2024-03-06 22:54:01 +01:00
maven.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
nim.section.md buildNimPackage: allow overriding nim package args 2023-12-10 09:10:02 +00:00
ocaml.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
octave.section.md
perl.section.md doc: update shortenPerlShebang example to use nativeBuildInputs 2023-05-10 18:34:17 +02:00
php.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
pkg-config.section.md
python.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
qt.section.md doc/qt: minor fixes 2024-03-04 15:50:03 +08:00
r.section.md
ruby.section.md docs/ruby: update/drop references to old version 2024-01-02 15:30:07 +01:00
rust.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
swift.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
texlive.section.md Nix docs: remove with lib; from example code 2024-03-06 11:40:09 -03:00
titanium.section.md
vim.section.md vimPluginsUpdater: init 2023-10-01 17:30:55 +02:00