From bb429ba52d3b1a99c20dd0a67af1e5868500cdaf Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Tue, 30 Jul 2024 09:16:46 +0200 Subject: [PATCH] cuda-modules: remove old aliases --- pkgs/development/cuda-modules/aliases.nix | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/pkgs/development/cuda-modules/aliases.nix b/pkgs/development/cuda-modules/aliases.nix index 7f28f2c76d471..4e25dc44ca9af 100644 --- a/pkgs/development/cuda-modules/aliases.nix +++ b/pkgs/development/cuda-modules/aliases.nix @@ -1,18 +1,14 @@ -# Packges which have been deprecated or removed from cudaPackages +# Packages which have been deprecated or removed from cudaPackages final: prev: let + inherit (prev.lib) warn; + inherit (builtins) mapAttrs; + mkRenamed = - oldName: newName: newPkg: - final.lib.warn "cudaPackages.${oldName} is deprecated, use ${newName} instead" newPkg; + oldName: + { path, package }: + warn "cudaPackages.${oldName} is deprecated, use ${path} instead" package; 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.autoAddDriverRunpathHook" - final.pkgs.autoAddDriverRunpath; # Added 2024-03-30 +mapAttrs mkRenamed { + # A comment to prevent empty { } from collapsing into a single line }