Skip to content

Commit 52eb885

Browse files
committed
cudaPackages.autoAdd{Driver,OpengGL}Runpath: deprecate
1 parent 6347cd2 commit 52eb885

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
# Packges which have been deprecated or removed from cudaPackages
2-
final: prev: {
2+
final: prev:
3+
let
4+
mkRenamed =
5+
oldName: newName: newPkg:
6+
final.lib.warn "cudaPackages.${oldName} is deprecated, use ${newName} instead" newPkg;
7+
in
8+
{
39

10+
# Deprecated: an alias kept for compatibility. Consider removing after 24.05
11+
autoFixElfFiles = mkRenamed "autoFixElfFiles" "pkgs.autoFixElfFiles" final.pkgs.autoFixElfFiles; # Added 2024-03-30
12+
autoAddDriverRunpath =
13+
mkRenamed "autoAddDriverRunpath" "pkgs.autoAddDriverRunpath"
14+
final.pkgs.autoAddDriverRunpath; # Added 2024-03-30
15+
autoAddOpenGLRunpathHook =
16+
mkRenamed "autoAddOpenGLRunpathHook" "pkgs.autoAddDriverRunpath"
17+
final.pkgs.autoAddDriverRunpath; # Added 2024-03-30
418
}

pkgs/development/cuda-modules/setup-hooks/extension.nix

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
final: _: {
2-
# TODO:
3-
# - Move to cuda-modules/aliases.nix once
4-
# https://github.com/NixOS/nixpkgs/issues/141803 is ready.
5-
# - Consider removing after 24.11.
6-
inherit (final.pkgs) autoAddDriverRunpath autoFixElfFiles;
7-
autoAddOpenGLRunpathHook = final.autoAddDriverRunpath;
8-
92
# Internal hook, used by cudatoolkit and cuda redist packages
103
# to accommodate automatic CUDAToolkit_ROOT construction
114
markForCudatoolkitRootHook = final.callPackage (

0 commit comments

Comments
 (0)