nixpkgs/pkgs/applications/science/molecular-dynamics
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
..
dl-poly-classic dl-poly-classic-mpi: fix build with gcc 11+ 2023-12-11 19:01:06 +01:00
gromacs gromacs: 2024 -> 2024.1 2024-03-05 14:38:54 +01:00
lammps cudaPackages: generalize and refactor setup hook 2024-03-15 15:54:21 +01:00
raspa raspa: init at 2.0.47 and add tests 2023-04-03 20:53:23 +08:00
viennarna viennarna: rename from ViennaRNA 2023-08-23 16:54:10 +09:00