cudaPackages: fix an annoying warning caused by alias

(cherry picked from commit ae5074ef87)
This commit is contained in:
wrvsrx 2024-06-02 11:58:57 +08:00 committed by github-actions[bot]
parent 7bddba3dd2
commit 876857f17d

View File

@ -53,6 +53,10 @@ let
redistribRelease = redistribManifest.${pname};
featureRelease = featureManifest.${pname};
drv =
let
# get `autoAddDriverRunpath` from pkgs instead of cudaPackages' alias to avoid warning
inherit (callPackage ({ pkgs }: pkgs) { }) autoAddDriverRunpath;
in
(callPackage ../generic-builders/manifest.nix {
# We pass the whole release to the builder because it has logic to handle
# the case we're trying to build on an unsupported platform.
@ -61,6 +65,7 @@ let
redistName
redistribRelease
featureRelease
autoAddDriverRunpath
;
}).overrideAttrs
(prevAttrs: {