2022-04-15 01:41:22 +00:00
|
|
|
final: prev: let
|
|
|
|
### Cuda Toolkit
|
|
|
|
|
|
|
|
# Function to build the class cudatoolkit package
|
|
|
|
buildCudaToolkitPackage = final.callPackage ./common.nix;
|
|
|
|
|
|
|
|
# Version info for the classic cudatoolkit packages that contain everything that is in redist.
|
|
|
|
cudatoolkitVersions = final.lib.importTOML ./versions.toml;
|
|
|
|
|
|
|
|
### Add classic cudatoolkit package
|
|
|
|
cudatoolkit = buildCudaToolkitPackage ((attrs: attrs // { gcc = prev.pkgs.${attrs.gcc}; }) cudatoolkitVersions.${final.cudaVersion});
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
cudaFlags = final.callPackage ./flags.nix {};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
in {
|
2022-12-17 10:02:37 +00:00
|
|
|
inherit cudatoolkit cudaFlags;
|
2022-04-15 01:41:22 +00:00
|
|
|
}
|