From d6450daf5dcc078592231bcd9affd2b353a16e16 Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Fri, 22 Dec 2023 03:24:33 +0000 Subject: cudaPackages.cuda_nvcc: explain nvcc.profile syntaax --- pkgs/development/cuda-modules/cuda/overrides.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkgs/development/cuda-modules') diff --git a/pkgs/development/cuda-modules/cuda/overrides.nix b/pkgs/development/cuda-modules/cuda/overrides.nix index ff462b4cc970b..92b4a21fe7720 100644 --- a/pkgs/development/cuda-modules/cuda/overrides.nix +++ b/pkgs/development/cuda-modules/cuda/overrides.nix @@ -64,6 +64,15 @@ attrsets.filterAttrs (attr: _: (builtins.hasAttr attr prev)) { outputs = oldAttrs.outputs ++ [ "lib" ]; + # Patch the nvcc.profile. + # Syntax: + # - `=` for assignment, + # - `?=` for conditional assignment, + # - `+=` to "prepend", + # - `=+` to "append". + + # Cf. https://web.archive.org/web/20230308044351/https://arcb.csc.ncsu.edu/~mueller/cluster/nvidia/2.0/nvcc_2.0.pdf + postPatch = (oldAttrs.postPatch or "") + '' -- cgit 1.4.1