Files
2026-05-25 13:48:20 +02:00

17 lines
376 B
Nix

{
lib,
stdenv,
makeSetupHook,
}:
makeSetupHook {
name = "add-driver-runpath-hook";
substitutions = {
# Named "opengl-driver" for legacy reasons, but it is the path to
# hardware drivers installed by NixOS
driverLink = "/run/opengl-driver" + lib.optionalString stdenv.hostPlatform.isi686 "-32";
};
meta.license = lib.licenses.mit;
} ./setup-hook.sh