Skip to content

Commit

Permalink
cudaPackages: redist: EULA notice in the description
Browse files Browse the repository at this point in the history
...to be displayed on search.nixos.org &c; this is the same notice as
included by conda-forge per agreement with nvidia; cf. comments in
NixOS#76233
  • Loading branch information
SomeoneSerge authored and AndersonTorres committed Nov 8, 2023
1 parent dd8e4b0 commit 4e4bbb0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let
inherit (lib.meta) getExe;
inherit (lib.strings) optionalString;
in
backendStdenv.mkDerivation {
backendStdenv.mkDerivation (finalAttrs: {
# NOTE: Even though there's no actual buildPhase going on here, the derivations of the
# redistributables are sensitive to the compiler flags provided to stdenv. The patchelf package
# is sensitive to the compiler flags provided to stdenv, and we depend on it. As such, we are
Expand Down Expand Up @@ -164,7 +164,8 @@ backendStdenv.mkDerivation {
outputSpecified = true;

meta = {
inherit description platforms;
inherit platforms;
description = "${description}. By downloading and using the packages you accept the terms and conditions of the ${finalAttrs.meta.license.shortName}";
license = lib.licenses.nvidiaCudaRedist // {
url = "https://developer.download.nvidia.com/compute/cuda/redist/${releaseAttrs.license_path or "${pname}/LICENSE.txt"}";
};
Expand All @@ -174,4 +175,4 @@ backendStdenv.mkDerivation {
# causes Nix to prefer that output over the others if outputSpecified isn't set).
outputsToInstall = [ "out" ];
};
}
})

0 comments on commit 4e4bbb0

Please sign in to comment.