about summary refs log tree commit diff
path: root/pkgs/development/cuda-modules
diff options
context:
space:
mode:
authorSomeone Serge <sergei.kozlukov@aalto.fi>2023-12-22 03:24:33 +0000
committerSomeone Serge <sergei.kozlukov@aalto.fi>2023-12-22 03:49:24 +0000
commitd6450daf5dcc078592231bcd9affd2b353a16e16 (patch)
tree4e8a0e66b1bd6424a665897f164c14368df10271 /pkgs/development/cuda-modules
parent35b1e5803aa0cb8001fa80c14546a05f581c5e5c (diff)
cudaPackages.cuda_nvcc: explain nvcc.profile syntaax
Diffstat (limited to 'pkgs/development/cuda-modules')
-rw-r--r--pkgs/development/cuda-modules/cuda/overrides.nix9
1 files changed, 9 insertions, 0 deletions
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 "")
         + ''