Skip to content

Commit

Permalink
cuda-modules: remove old aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
srhb authored and SomeoneSerge committed Jul 30, 2024
1 parent b9fb14c commit bb429ba
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions pkgs/development/cuda-modules/aliases.nix
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit bb429ba

Please sign in to comment.