nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, ... }:
2let
3 inherit (lib) options types;
4in
5options.mkOption {
6 description = "Package in the manifest";
7 example = (import ./release.nix { inherit lib; }).linux-x86_64;
8 type = types.submodule {
9 options = {
10 relative_path = options.mkOption {
11 description = "Relative path to the package";
12 example = "cuda_cccl/linux-x86_64/cuda_cccl-linux-x86_64-11.5.62-archive.tar.xz";
13 type = types.str;
14 };
15 sha256 = options.mkOption {
16 description = "Sha256 hash of the package";
17 example = "bbe633d6603d5a96a214dcb9f3f6f6fd2fa04d62e53694af97ae0c7afe0121b0";
18 type = types.str;
19 };
20 md5 = options.mkOption {
21 description = "Md5 hash of the package";
22 example = "e5deef4f6cb71f14aac5be5d5745dafe";
23 type = types.str;
24 };
25 size = options.mkOption {
26 description = "Size of the package as a string";
27 type = types.str;
28 example = "960968";
29 };
30 };
31 };
32}