nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 19 lines 690 B view raw view rendered
1# packages 2 3Packages which are not created by the redistributable builder. 4 5## Conventions 6 7- All new packages should include the following lines as part of their arguments to `stdenv.mkDerivation`: 8 9 ```nix 10 finalAttrs: { 11 __structuredAttrs = true; 12 strictDeps = true; 13 14 # NOTE: Depends on the CUDA package set, so use cudaNamePrefix. 15 name = "${cudaNamePrefix}-${finalAttrs.pname}-${finalAttrs.version}"; 16 } 17 ``` 18 19 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.