Files
Connor Baker 29ce053617 cudaPackages: build redists from manifests
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
2025-10-22 13:14:45 -07:00

20 lines
690 B
Markdown

# packages
Packages which are not created by the redistributable builder.
## Conventions
- All new packages should include the following lines as part of their arguments to `stdenv.mkDerivation`:
```nix
finalAttrs: {
__structuredAttrs = true;
strictDeps = true;
# NOTE: Depends on the CUDA package set, so use cudaNamePrefix.
name = "${cudaNamePrefix}-${finalAttrs.pname}-${finalAttrs.version}";
}
```
If the package does not require elements of the package set, then the `cudaNamePrefix` must be omitted: changing the name of a derivation yields a different hash and store path, so we would end up with multiple different store paths with the same content.