cudaPackages: fix an annoying warning caused by alias

This commit is contained in:
wrvsrx
2024-06-02 11:58:57 +08:00
parent 9981e5be60
commit ae5074ef87
@@ -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: {