diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md index dd6acc9b0404..a5e8ab4addfa 100644 --- a/nixos/doc/manual/release-notes/rl-2405.section.md +++ b/nixos/doc/manual/release-notes/rl-2405.section.md @@ -176,6 +176,10 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m - `programs.nix-ld.libraries` no longer sets `baseLibraries` via the option's default but in config and now merges any additional libraries with the default ones. This means that `lib.mkForce` must be used to clear the list of default libraries. +- `cudaPackages.autoAddOpenGLRunpathHook` and `cudaPackages.autoAddDriverRunpath` have been deprecated for `pkgs.autoAddDriverRunpath`. Functionality has not changed, but the setuphook has been renamed and moved to the top-level package scope. + +- `cudaPackages.autoFixElfFiles` has been deprecated for `pkgs.autoFixElfFiles`. Functionality has not changed, but the setuphook has been renamed and moved to the top-level package scope. + - `pdns` was updated to version [v4.9.x](https://doc.powerdns.com/authoritative/changelog/4.9.html), which introduces breaking changes. Check out the [Upgrade Notes](https://doc.powerdns.com/authoritative/upgrading.html#to-4-9-0) for details. - `unrar` was updated to v7. See [changelog](https://www.rarlab.com/unrar7notes.htm) for more information. diff --git a/pkgs/development/cuda-modules/aliases.nix b/pkgs/development/cuda-modules/aliases.nix index 3c4a791ebd71..36dd07d773bd 100644 --- a/pkgs/development/cuda-modules/aliases.nix +++ b/pkgs/development/cuda-modules/aliases.nix @@ -1,4 +1,18 @@ # Packges which have been deprecated or removed from cudaPackages -final: prev: { +final: prev: +let + mkRenamed = + oldName: newName: newPkg: + final.lib.warn "cudaPackages.${oldName} is deprecated, use ${newName} instead" newPkg; +in +{ + # Deprecated: an alias kept for compatibility. Consider removing after 24.05 + autoFixElfFiles = mkRenamed "autoFixElfFiles" "pkgs.autoFixElfFiles" final.pkgs.autoFixElfFiles; # Added 2024-03-30 + autoAddDriverRunpath = + mkRenamed "autoAddDriverRunpath" "pkgs.autoAddDriverRunpath" + final.pkgs.autoAddDriverRunpath; # Added 2024-03-30 + autoAddOpenGLRunpathHook = + mkRenamed "autoAddOpenGLRunpathHook" "pkgs.autoAddDriverRunpath" + final.pkgs.autoAddDriverRunpath; # Added 2024-03-30 } diff --git a/pkgs/development/cuda-modules/setup-hooks/extension.nix b/pkgs/development/cuda-modules/setup-hooks/extension.nix index c385b4a06797..327f335f1890 100644 --- a/pkgs/development/cuda-modules/setup-hooks/extension.nix +++ b/pkgs/development/cuda-modules/setup-hooks/extension.nix @@ -1,11 +1,4 @@ final: _: { - # TODO: - # - Move to cuda-modules/aliases.nix once - # https://github.com/NixOS/nixpkgs/issues/141803 is ready. - # - Consider removing after 24.11. - inherit (final.pkgs) autoAddDriverRunpath autoFixElfFiles; - autoAddOpenGLRunpathHook = final.autoAddDriverRunpath; - # Internal hook, used by cudatoolkit and cuda redist packages # to accommodate automatic CUDAToolkit_ROOT construction markForCudatoolkitRootHook = final.callPackage (