cudaPackages: redist components: per-package license url

This commit is contained in:
Someone Serge 2023-10-17 23:44:10 +03:00 committed by Anderson Torres
parent 6c9c9ef2eb
commit 6cd3e9ce1a
2 changed files with 11 additions and 1 deletions

View File

@ -883,6 +883,14 @@ in mkLicense lset) ({
free = false;
};
nvidiaCudaRedist = {
shortName = "CUDA EULA";
fullName = "CUDA Toolkit End User License Agreement (EULA)";
url = "https://docs.nvidia.com/cuda/eula/index.html#cuda-toolkit-supplement-license-agreement";
free = false;
redistributable = true;
};
obsidian = {
fullName = "Obsidian End User Agreement";
url = "https://obsidian.md/eula";

View File

@ -165,7 +165,9 @@ backendStdenv.mkDerivation {
meta = {
inherit description platforms;
license = lib.licenses.unfree;
license = lib.licenses.nvidiaCudaRedist // {
url = "https://developer.download.nvidia.com/compute/cuda/redist/${releaseAttrs.license_path or "${pname}/LICENSE.txt"}";
};
maintainers = lib.teams.cuda.members;
# Force the use of the default, fat output by default (even though `dev` exists, which
# causes Nix to prefer that output over the others if outputSpecified isn't set).