Skip to content

Commit fdc6ed4

Browse files
committed
cudaPackages: ensure scope comes from pkgs'.nvidia-jetpack
Signed-off-by: Connor Baker <[email protected]>
1 parent 283f3b6 commit fdc6ed4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mk-overlay.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ makeScope final.newScope (self: {
161161
cudaVersionDashes = replaceStrings [ "." ] [ "-" ] cudaMajorMinorVersion;
162162

163163
# Utilities
164-
callPackage = callPackageWith (final // self // finalCudaPackages);
165-
callPackages = callPackagesWith (final // self // finalCudaPackages);
164+
callPackages = callPackagesWith (pkgs' // pkgs'.nvidia-jetpack // finalCudaPackages);
166165
cudaAtLeast = versionAtLeast finalCudaPackages.cudaMajorMinorPatchVersion;
167166
cudaOlder = versionOlder finalCudaPackages.cudaMajorMinorPatchVersion;
168167
inherit (self) debs; # NOTE: The presence of debs is used as a condition in construciton of pkgs'.
@@ -216,7 +215,8 @@ makeScope final.newScope (self: {
216215
]
217216
++ _cuda.extensions);
218217
in
219-
makeScope pkgs'.newScope (
218+
# NOTE: We must ensure the scope allows us to draw on the contents of nvidia-jetpack.
219+
makeScope pkgs'.nvidia-jetpack.newScope (
220220
extends composedExtensions passthruFunction
221221
);
222222

0 commit comments

Comments
 (0)