cudnn: Fix referring to deprecated alias.

Similar to commit

    ae5074ef cudaPackages: fix an annoying warning caused by alias

Can be verified with:

    NIX_ABORT_ON_WARN=true NIXPKGS_ALLOW_UNFREE=1 NIX_PATH=nixpkgs=. nix-instantiate -A cudaPackages.cudnn
This commit is contained in:
Niklas Hambüchen 2024-08-17 15:15:46 +00:00
parent c3d4ac7251
commit 98f654ed61

View File

@ -127,6 +127,8 @@ let
inherit pname;
redistName = pname;
inherit (shims) redistribRelease featureRelease;
# get `autoAddDriverRunpath` from pkgs instead of cudaPackages' alias to avoid warning
inherit (final.callPackage ({ pkgs }: pkgs) { }) autoAddDriverRunpath;
};
fixedDrv = drv.overrideAttrs (overrideAttrsFixupFn final package);
in