blob: 322522b048de9d00d26806c1e894d64635d35591 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# 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.
|