├── .gitignore ├── .github └── workflows │ ├── statix.toml │ └── build-and-test.yml ├── src ├── testdata │ ├── multi-doc.nix │ ├── escape.nix │ ├── escape.yaml │ ├── multi-doc.yaml │ ├── deployment.nix │ ├── deployment.yaml │ ├── keywords.nix │ └── keywords.yaml └── main.rs ├── Cargo.toml ├── README.md ├── flake.nix ├── flake.lock ├── Cargo.lock ├── LICENSE └── Cargo.nix /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | result-bin 3 | -------------------------------------------------------------------------------- /.github/workflows/statix.toml: -------------------------------------------------------------------------------- 1 | disabled = [ 2 | # cargo2nix generates these 3 | "useless_parens" 4 | ] 5 | -------------------------------------------------------------------------------- /src/testdata/multi-doc.nix: -------------------------------------------------------------------------------- 1 | [{ apiVersion = "v1"; kind = "Namespace"; metadata = { name = "foo"; }; } { apiVersion = "v1"; kind = "Namespace"; metadata = { name = "bar"; }; }] 2 | -------------------------------------------------------------------------------- /src/testdata/escape.nix: -------------------------------------------------------------------------------- 1 | { escapes = { newline = "\n"; slash = "\\"; "-_-" = "-_-"; dolla = "dolla $"; dolla2 = "\${}"; unquoted_key_with_underscores = "value"; unquoted-key_with-quote' = 1; }; } 2 | -------------------------------------------------------------------------------- /src/testdata/escape.yaml: -------------------------------------------------------------------------------- 1 | escapes: 2 | newline: "\n" 3 | slash: "\\" 4 | -_-: '-_-' 5 | dolla: "dolla $" 6 | dolla2: "${}" 7 | unquoted_key_with_underscores: value 8 | "unquoted-key_with-quote'": 1 9 | -------------------------------------------------------------------------------- /src/testdata/multi-doc.yaml: -------------------------------------------------------------------------------- 1 | # Multiple documents, including empty ones 2 | --- 3 | apiVersion: v1 4 | kind: Namespace 5 | metadata: 6 | name: foo 7 | --- 8 | --- 9 | apiVersion: v1 10 | kind: Namespace 11 | metadata: 12 | name: bar 13 | -------------------------------------------------------------------------------- /src/testdata/deployment.nix: -------------------------------------------------------------------------------- 1 | { apiVersion = "apps/v1"; kind = "Deployment"; metadata = { name = "nginx-deployment"; labels = { app = "nginx"; }; }; spec = { replicas = 3; selector = { matchLabels = { app = "nginx"; }; }; template = { metadata = { labels = { app = "nginx"; }; }; spec = { containers = [{ name = "nginx"; image = "nginx:1.14.2"; ports = [{ containerPort = 80; }]; }]; }; }; }; } 2 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "yaml2nix" 3 | version = "0.1.0" 4 | authors = ["Euan Kemp "] 5 | edition = "2018" 6 | 7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 | 9 | [dependencies] 10 | serde = "1.0" 11 | serde_yaml = "0.8.13" 12 | serde-nix = { git = "https://github.com/euank/serde-nix.git" } 13 | rnix = "0.8.0" 14 | nixpkgs-fmt = "0.9.0" 15 | -------------------------------------------------------------------------------- /src/testdata/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: nginx-deployment 5 | labels: 6 | app: nginx 7 | spec: 8 | replicas: 3 9 | selector: 10 | matchLabels: 11 | app: nginx 12 | template: 13 | metadata: 14 | labels: 15 | app: nginx 16 | spec: 17 | containers: 18 | - name: nginx 19 | image: nginx:1.14.2 20 | ports: 21 | - containerPort: 80 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # yaml2nix 2 | 3 | yaml2nix is a command line tool to convert yaml into a nix expression. 4 | 5 | ## Usage 6 | 7 | Currently, `yaml2nix` takes a single argument, the yaml file to convert, and 8 | outputs the nix expression on stdout. 9 | If the input yaml file cannot be parsed, it will exit non-zero and print an 10 | appropriate error message. 11 | 12 | With flake enabled Nix, run: 13 | 14 | ``` 15 | nix run github:euank/yaml2nix $PATH_TO_YAML_FILE 16 | ``` 17 | -------------------------------------------------------------------------------- /src/testdata/keywords.nix: -------------------------------------------------------------------------------- 1 | { "if" = "if"; "then" = "then"; "else" = "else"; "assert" = "assert"; "with" = "with"; "let" = "let"; "in" = "in"; "rec" = "rec"; "inherit" = "inherit"; "or" = "or"; quoted = { "if" = "if"; "then" = "then"; "else" = "else"; "assert" = "assert"; "with" = "with"; "let" = "let"; "in" = "in"; "rec" = "rec"; "inherit" = "inherit"; "or" = "or"; }; kwar = [ "if" "then" "else" "assert" "with" "let" "in" "rec" "inherit" "or" "if" "then" "else" "assert" "with" "let" "in" "rec" "inherit" "or" ]; } 2 | -------------------------------------------------------------------------------- /src/testdata/keywords.yaml: -------------------------------------------------------------------------------- 1 | # Keywords from https://github.com/NixOS/nix/blob/48477d4a3e7130c89b2ded4496c00ef74601091f/src/libexpr/lexer.l#L109-L118 2 | if: if 3 | then: then 4 | else: else 5 | assert: assert 6 | with: with 7 | let: let 8 | in: in 9 | rec: rec 10 | inherit: inherit 11 | or: or 12 | 13 | quoted: 14 | "if": "if" 15 | "then": "then" 16 | "else": "else" 17 | "assert": "assert" 18 | "with": "with" 19 | "let": "let" 20 | "in": "in" 21 | "rec": "rec" 22 | "inherit": "inherit" 23 | "or": "or" 24 | 25 | 26 | kwar: 27 | - if 28 | - then 29 | - else 30 | - assert 31 | - with 32 | - let 33 | - in 34 | - rec 35 | - inherit 36 | - or 37 | - "if" 38 | - "then" 39 | - "else" 40 | - "assert" 41 | - "with" 42 | - "let" 43 | - "in" 44 | - "rec" 45 | - "inherit" 46 | - "or" 47 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs = { 3 | cargo2nix.url = "github:cargo2nix/cargo2nix/release-0.11.0"; 4 | flake-utils.follows = "cargo2nix/flake-utils"; 5 | nixpkgs.follows = "cargo2nix/nixpkgs"; 6 | }; 7 | 8 | outputs = inputs: with inputs; 9 | flake-utils.lib.eachDefaultSystem (system: 10 | let 11 | pkgs = import nixpkgs { 12 | inherit system; 13 | overlays = [cargo2nix.overlays.default]; 14 | }; 15 | 16 | rustPkgs = pkgs.rustBuilder.makePackageSet { 17 | rustVersion = "1.70.0"; 18 | packageFun = import ./Cargo.nix; 19 | }; 20 | 21 | in rec { 22 | packages = { 23 | yaml2nix = (rustPkgs.workspace.yaml2nix {}).bin; 24 | default = packages.yaml2nix; 25 | }; 26 | } 27 | ); 28 | } 29 | -------------------------------------------------------------------------------- /.github/workflows/build-and-test.yml: -------------------------------------------------------------------------------- 1 | name: Rust 2 | 3 | on: 4 | push: 5 | branches: [ "main" ] 6 | pull_request: 7 | branches: [ "main" ] 8 | 9 | env: 10 | CARGO_TERM_COLOR: always 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - uses: actions/checkout@v3 17 | - name: Install Nix 18 | uses: DeterminateSystems/nix-installer-action@v4 19 | - name: Run the Magic Nix Cache 20 | uses: DeterminateSystems/magic-nix-cache-action@v2 21 | - name: Build 22 | run: cargo build --verbose 23 | - name: Run tests 24 | run: cargo test --verbose 25 | - name: nix build 26 | run: nix build 27 | - name: nix flake check 28 | run: nix flake check 29 | - name: Verify nix run works 30 | run: nix run '.#' -- src/testdata/deployment.yaml 31 | lint: 32 | runs-on: ubuntu-latest 33 | steps: 34 | - uses: actions/checkout@v3 35 | - name: Install Nix 36 | uses: DeterminateSystems/nix-installer-action@v4 37 | - name: Run the Magic Nix Cache 38 | uses: DeterminateSystems/magic-nix-cache-action@v2 39 | - name: Run statix lint 40 | run: nix run --inputs-from ./. 'nixpkgs#statix' -- check -c ./.github/workflows/statix.toml 41 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use std::io::Read; 2 | 3 | fn main() { 4 | let file_name = &std::env::args().collect::>()[1]; 5 | let mut file = std::fs::File::open(file_name).expect("could not open file"); 6 | // serde_yaml doesn't support multi-document yaml, so split it up for it ourselves. 7 | let mut document = String::new(); 8 | file.read_to_string(&mut document).unwrap(); 9 | 10 | print!("{}", convert_doc(document)) 11 | } 12 | 13 | fn convert_doc(document: String) -> String { 14 | let lines: Vec<_> = document.lines().collect(); 15 | let documents: Vec<_> = lines 16 | .split(|line| line.starts_with("---")) 17 | .map(|lines| lines.join("\n")) 18 | .collect(); 19 | 20 | // Trim empty documents, best effort. 21 | let documents: Vec<_> = documents.iter().filter(|d| d.trim() != "").collect(); 22 | 23 | let docs: serde_yaml::Sequence = documents 24 | .iter() 25 | .filter_map(|document| { 26 | match serde_yaml::from_str(&document) { 27 | Ok(doc) => Some(doc), 28 | Err(e) if format!("{:?}", e) == "EndOfStream" => { 29 | // An empty document can result in this; let's assume it's non-fatal 30 | None 31 | } 32 | Err(e) => { 33 | panic!("Unable to deserialize document: {}", e); 34 | } 35 | } 36 | }) 37 | .collect(); 38 | 39 | let len = docs.len(); 40 | match len { 41 | 0 => { 42 | panic!("no document supplied"); 43 | } 44 | 1 => { 45 | let nix_string = serde_nix::to_string(&docs[0]).unwrap(); 46 | nixpkgs_fmt::reformat_string(&nix_string) 47 | } 48 | _ => { 49 | let nix_string = serde_nix::to_string(&docs).unwrap(); 50 | nixpkgs_fmt::reformat_string(&nix_string) 51 | } 52 | } 53 | } 54 | 55 | #[cfg(test)] 56 | mod test { 57 | use super::*; 58 | 59 | #[test] 60 | fn test_documents() { 61 | for pairs in vec![ 62 | ( 63 | include_str!("testdata/deployment.yaml"), 64 | include_str!("testdata/deployment.nix"), 65 | ), 66 | ( 67 | include_str!("testdata/multi-doc.yaml"), 68 | include_str!("testdata/multi-doc.nix"), 69 | ), 70 | ( 71 | include_str!("testdata/escape.yaml"), 72 | include_str!("testdata/escape.nix"), 73 | ), 74 | ( 75 | include_str!("testdata/keywords.yaml"), 76 | include_str!("testdata/keywords.nix"), 77 | ), 78 | ] { 79 | assert_eq!(pairs.1, convert_doc(pairs.0.to_string())); 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "cargo2nix": { 4 | "inputs": { 5 | "flake-compat": "flake-compat", 6 | "flake-utils": "flake-utils", 7 | "nixpkgs": "nixpkgs", 8 | "rust-overlay": "rust-overlay" 9 | }, 10 | "locked": { 11 | "lastModified": 1699033427, 12 | "narHash": "sha256-OVtd5IPbb4NvHibN+QvMrMxq7aZN5GFoINZSAXKjUdA=", 13 | "owner": "cargo2nix", 14 | "repo": "cargo2nix", 15 | "rev": "c6f33051f412352f293e738cc8da6fd4c457080f", 16 | "type": "github" 17 | }, 18 | "original": { 19 | "owner": "cargo2nix", 20 | "ref": "release-0.11.0", 21 | "repo": "cargo2nix", 22 | "type": "github" 23 | } 24 | }, 25 | "flake-compat": { 26 | "flake": false, 27 | "locked": { 28 | "lastModified": 1696426674, 29 | "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 30 | "owner": "edolstra", 31 | "repo": "flake-compat", 32 | "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 33 | "type": "github" 34 | }, 35 | "original": { 36 | "owner": "edolstra", 37 | "repo": "flake-compat", 38 | "type": "github" 39 | } 40 | }, 41 | "flake-utils": { 42 | "inputs": { 43 | "systems": "systems" 44 | }, 45 | "locked": { 46 | "lastModified": 1694529238, 47 | "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", 48 | "owner": "numtide", 49 | "repo": "flake-utils", 50 | "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", 51 | "type": "github" 52 | }, 53 | "original": { 54 | "owner": "numtide", 55 | "repo": "flake-utils", 56 | "type": "github" 57 | } 58 | }, 59 | "nixpkgs": { 60 | "locked": { 61 | "lastModified": 1697382362, 62 | "narHash": "sha256-PvFjWFmSYOF6TjNZ/WjOeqa+sgaWm+83Fz37vEuATHA=", 63 | "owner": "nixos", 64 | "repo": "nixpkgs", 65 | "rev": "ad9a253a0d34f313707f9c25fb8c95c65b1c8882", 66 | "type": "github" 67 | }, 68 | "original": { 69 | "owner": "nixos", 70 | "ref": "release-23.05", 71 | "repo": "nixpkgs", 72 | "type": "github" 73 | } 74 | }, 75 | "root": { 76 | "inputs": { 77 | "cargo2nix": "cargo2nix", 78 | "flake-utils": [ 79 | "cargo2nix", 80 | "flake-utils" 81 | ], 82 | "nixpkgs": [ 83 | "cargo2nix", 84 | "nixpkgs" 85 | ] 86 | } 87 | }, 88 | "rust-overlay": { 89 | "inputs": { 90 | "flake-utils": [ 91 | "cargo2nix", 92 | "flake-utils" 93 | ], 94 | "nixpkgs": [ 95 | "cargo2nix", 96 | "nixpkgs" 97 | ] 98 | }, 99 | "locked": { 100 | "lastModified": 1697336027, 101 | "narHash": "sha256-ctmmw7j4liyfSh63v9rdFZeIoNYCkCvgqvtEOB7KhX8=", 102 | "owner": "oxalica", 103 | "repo": "rust-overlay", 104 | "rev": "e494404d36a41247987eeb1bfc2f1ca903e97764", 105 | "type": "github" 106 | }, 107 | "original": { 108 | "owner": "oxalica", 109 | "repo": "rust-overlay", 110 | "type": "github" 111 | } 112 | }, 113 | "systems": { 114 | "locked": { 115 | "lastModified": 1681028828, 116 | "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 117 | "owner": "nix-systems", 118 | "repo": "default", 119 | "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 120 | "type": "github" 121 | }, 122 | "original": { 123 | "owner": "nix-systems", 124 | "repo": "default", 125 | "type": "github" 126 | } 127 | } 128 | }, 129 | "root": "root", 130 | "version": 7 131 | } 132 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "aho-corasick" 7 | version = "1.1.3" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" 10 | dependencies = [ 11 | "memchr", 12 | ] 13 | 14 | [[package]] 15 | name = "ansi_term" 16 | version = "0.12.1" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" 19 | dependencies = [ 20 | "winapi", 21 | ] 22 | 23 | [[package]] 24 | name = "atty" 25 | version = "0.2.14" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 28 | dependencies = [ 29 | "hermit-abi", 30 | "libc", 31 | "winapi", 32 | ] 33 | 34 | [[package]] 35 | name = "autocfg" 36 | version = "1.3.0" 37 | source = "registry+https://github.com/rust-lang/crates.io-index" 38 | checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" 39 | 40 | [[package]] 41 | name = "bitflags" 42 | version = "1.3.2" 43 | source = "registry+https://github.com/rust-lang/crates.io-index" 44 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 45 | 46 | [[package]] 47 | name = "bstr" 48 | version = "1.10.0" 49 | source = "registry+https://github.com/rust-lang/crates.io-index" 50 | checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" 51 | dependencies = [ 52 | "memchr", 53 | "serde", 54 | ] 55 | 56 | [[package]] 57 | name = "cbitset" 58 | version = "0.2.0" 59 | source = "registry+https://github.com/rust-lang/crates.io-index" 60 | checksum = "29b6ad25ae296159fb0da12b970b2fe179b234584d7cd294c891e2bbb284466b" 61 | dependencies = [ 62 | "num-traits", 63 | ] 64 | 65 | [[package]] 66 | name = "cfg-if" 67 | version = "0.1.10" 68 | source = "registry+https://github.com/rust-lang/crates.io-index" 69 | checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 70 | 71 | [[package]] 72 | name = "clap" 73 | version = "2.34.0" 74 | source = "registry+https://github.com/rust-lang/crates.io-index" 75 | checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" 76 | dependencies = [ 77 | "ansi_term", 78 | "atty", 79 | "bitflags", 80 | "strsim", 81 | "textwrap", 82 | "unicode-width", 83 | "vec_map", 84 | ] 85 | 86 | [[package]] 87 | name = "crossbeam-channel" 88 | version = "0.3.9" 89 | source = "registry+https://github.com/rust-lang/crates.io-index" 90 | checksum = "c8ec7fcd21571dc78f96cc96243cab8d8f035247c3efd16c687be154c3fa9efa" 91 | dependencies = [ 92 | "crossbeam-utils 0.6.6", 93 | ] 94 | 95 | [[package]] 96 | name = "crossbeam-deque" 97 | version = "0.8.5" 98 | source = "registry+https://github.com/rust-lang/crates.io-index" 99 | checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" 100 | dependencies = [ 101 | "crossbeam-epoch", 102 | "crossbeam-utils 0.8.20", 103 | ] 104 | 105 | [[package]] 106 | name = "crossbeam-epoch" 107 | version = "0.9.18" 108 | source = "registry+https://github.com/rust-lang/crates.io-index" 109 | checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" 110 | dependencies = [ 111 | "crossbeam-utils 0.8.20", 112 | ] 113 | 114 | [[package]] 115 | name = "crossbeam-utils" 116 | version = "0.6.6" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6" 119 | dependencies = [ 120 | "cfg-if", 121 | "lazy_static", 122 | ] 123 | 124 | [[package]] 125 | name = "crossbeam-utils" 126 | version = "0.8.20" 127 | source = "registry+https://github.com/rust-lang/crates.io-index" 128 | checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" 129 | 130 | [[package]] 131 | name = "globset" 132 | version = "0.4.15" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | checksum = "15f1ce686646e7f1e19bf7d5533fe443a45dbfb990e00629110797578b42fb19" 135 | dependencies = [ 136 | "aho-corasick", 137 | "bstr", 138 | "log", 139 | "regex-automata", 140 | "regex-syntax", 141 | ] 142 | 143 | [[package]] 144 | name = "hashbrown" 145 | version = "0.12.3" 146 | source = "registry+https://github.com/rust-lang/crates.io-index" 147 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 148 | 149 | [[package]] 150 | name = "hermit-abi" 151 | version = "0.1.19" 152 | source = "registry+https://github.com/rust-lang/crates.io-index" 153 | checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" 154 | dependencies = [ 155 | "libc", 156 | ] 157 | 158 | [[package]] 159 | name = "ignore" 160 | version = "0.4.23" 161 | source = "registry+https://github.com/rust-lang/crates.io-index" 162 | checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" 163 | dependencies = [ 164 | "crossbeam-deque", 165 | "globset", 166 | "log", 167 | "memchr", 168 | "regex-automata", 169 | "same-file", 170 | "walkdir", 171 | "winapi-util", 172 | ] 173 | 174 | [[package]] 175 | name = "indexmap" 176 | version = "1.9.3" 177 | source = "registry+https://github.com/rust-lang/crates.io-index" 178 | checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" 179 | dependencies = [ 180 | "autocfg", 181 | "hashbrown", 182 | ] 183 | 184 | [[package]] 185 | name = "itoa" 186 | version = "1.0.11" 187 | source = "registry+https://github.com/rust-lang/crates.io-index" 188 | checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" 189 | 190 | [[package]] 191 | name = "lazy_static" 192 | version = "1.5.0" 193 | source = "registry+https://github.com/rust-lang/crates.io-index" 194 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" 195 | 196 | [[package]] 197 | name = "libc" 198 | version = "0.2.158" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" 201 | 202 | [[package]] 203 | name = "linked-hash-map" 204 | version = "0.5.6" 205 | source = "registry+https://github.com/rust-lang/crates.io-index" 206 | checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" 207 | 208 | [[package]] 209 | name = "log" 210 | version = "0.4.22" 211 | source = "registry+https://github.com/rust-lang/crates.io-index" 212 | checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" 213 | 214 | [[package]] 215 | name = "memchr" 216 | version = "2.7.4" 217 | source = "registry+https://github.com/rust-lang/crates.io-index" 218 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 219 | 220 | [[package]] 221 | name = "nixpkgs-fmt" 222 | version = "0.9.0" 223 | source = "registry+https://github.com/rust-lang/crates.io-index" 224 | checksum = "2f6eca38e3ef7e74b62d4ad0c9adc79e122f85163edc69ce5943e1ec325a2989" 225 | dependencies = [ 226 | "clap", 227 | "crossbeam-channel", 228 | "ignore", 229 | "rnix 0.7.2", 230 | "rowan 0.6.3", 231 | "serde_json", 232 | ] 233 | 234 | [[package]] 235 | name = "num-traits" 236 | version = "0.2.19" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" 239 | dependencies = [ 240 | "autocfg", 241 | ] 242 | 243 | [[package]] 244 | name = "proc-macro2" 245 | version = "1.0.86" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" 248 | dependencies = [ 249 | "unicode-ident", 250 | ] 251 | 252 | [[package]] 253 | name = "quote" 254 | version = "1.0.37" 255 | source = "registry+https://github.com/rust-lang/crates.io-index" 256 | checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" 257 | dependencies = [ 258 | "proc-macro2", 259 | ] 260 | 261 | [[package]] 262 | name = "regex-automata" 263 | version = "0.4.7" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" 266 | dependencies = [ 267 | "aho-corasick", 268 | "memchr", 269 | "regex-syntax", 270 | ] 271 | 272 | [[package]] 273 | name = "regex-syntax" 274 | version = "0.8.4" 275 | source = "registry+https://github.com/rust-lang/crates.io-index" 276 | checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" 277 | 278 | [[package]] 279 | name = "rnix" 280 | version = "0.7.2" 281 | source = "registry+https://github.com/rust-lang/crates.io-index" 282 | checksum = "2192039d0f383be6e0edb37718152c764509ce800cafe51f58f88b27bf0e4714" 283 | dependencies = [ 284 | "cbitset", 285 | "rowan 0.6.3", 286 | ] 287 | 288 | [[package]] 289 | name = "rnix" 290 | version = "0.8.1" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "0a9b645f0edba447dbfc6473dd22999f46a1d00ab39e777a2713a1cf34a1597b" 293 | dependencies = [ 294 | "cbitset", 295 | "rowan 0.9.1", 296 | ] 297 | 298 | [[package]] 299 | name = "rowan" 300 | version = "0.6.3" 301 | source = "registry+https://github.com/rust-lang/crates.io-index" 302 | checksum = "fc3a6fb2a35518af7cab43ec4e21ca82eb086a8b3bb1739e426dc3923d459607" 303 | dependencies = [ 304 | "rustc-hash", 305 | "serde", 306 | "smol_str", 307 | "text_unit", 308 | ] 309 | 310 | [[package]] 311 | name = "rowan" 312 | version = "0.9.1" 313 | source = "registry+https://github.com/rust-lang/crates.io-index" 314 | checksum = "1ea7cadf87a9d8432e85cb4eb86bd2e765ace60c24ef86e79084dcae5d1c5a19" 315 | dependencies = [ 316 | "rustc-hash", 317 | "smol_str", 318 | "text_unit", 319 | "thin-dst", 320 | ] 321 | 322 | [[package]] 323 | name = "rustc-hash" 324 | version = "1.1.0" 325 | source = "registry+https://github.com/rust-lang/crates.io-index" 326 | checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" 327 | 328 | [[package]] 329 | name = "ryu" 330 | version = "1.0.18" 331 | source = "registry+https://github.com/rust-lang/crates.io-index" 332 | checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" 333 | 334 | [[package]] 335 | name = "same-file" 336 | version = "1.0.6" 337 | source = "registry+https://github.com/rust-lang/crates.io-index" 338 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 339 | dependencies = [ 340 | "winapi-util", 341 | ] 342 | 343 | [[package]] 344 | name = "serde" 345 | version = "1.0.210" 346 | source = "registry+https://github.com/rust-lang/crates.io-index" 347 | checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" 348 | dependencies = [ 349 | "serde_derive", 350 | ] 351 | 352 | [[package]] 353 | name = "serde-nix" 354 | version = "0.1.0" 355 | source = "git+https://github.com/euank/serde-nix.git#1e3d04d88dcbec91d0aec050a4a53cd5e8c5e2d4" 356 | dependencies = [ 357 | "serde", 358 | "thiserror", 359 | ] 360 | 361 | [[package]] 362 | name = "serde_derive" 363 | version = "1.0.210" 364 | source = "registry+https://github.com/rust-lang/crates.io-index" 365 | checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" 366 | dependencies = [ 367 | "proc-macro2", 368 | "quote", 369 | "syn", 370 | ] 371 | 372 | [[package]] 373 | name = "serde_json" 374 | version = "1.0.128" 375 | source = "registry+https://github.com/rust-lang/crates.io-index" 376 | checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" 377 | dependencies = [ 378 | "itoa", 379 | "memchr", 380 | "ryu", 381 | "serde", 382 | ] 383 | 384 | [[package]] 385 | name = "serde_yaml" 386 | version = "0.8.26" 387 | source = "registry+https://github.com/rust-lang/crates.io-index" 388 | checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b" 389 | dependencies = [ 390 | "indexmap", 391 | "ryu", 392 | "serde", 393 | "yaml-rust", 394 | ] 395 | 396 | [[package]] 397 | name = "smol_str" 398 | version = "0.1.24" 399 | source = "registry+https://github.com/rust-lang/crates.io-index" 400 | checksum = "fad6c857cbab2627dcf01ec85a623ca4e7dcb5691cbaa3d7fb7653671f0d09c9" 401 | dependencies = [ 402 | "serde", 403 | ] 404 | 405 | [[package]] 406 | name = "strsim" 407 | version = "0.8.0" 408 | source = "registry+https://github.com/rust-lang/crates.io-index" 409 | checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 410 | 411 | [[package]] 412 | name = "syn" 413 | version = "2.0.77" 414 | source = "registry+https://github.com/rust-lang/crates.io-index" 415 | checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" 416 | dependencies = [ 417 | "proc-macro2", 418 | "quote", 419 | "unicode-ident", 420 | ] 421 | 422 | [[package]] 423 | name = "text_unit" 424 | version = "0.1.10" 425 | source = "registry+https://github.com/rust-lang/crates.io-index" 426 | checksum = "20431e104bfecc1a40872578dbc390e10290a0e9c35fffe3ce6f73c15a9dbfc2" 427 | dependencies = [ 428 | "serde", 429 | ] 430 | 431 | [[package]] 432 | name = "textwrap" 433 | version = "0.11.0" 434 | source = "registry+https://github.com/rust-lang/crates.io-index" 435 | checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 436 | dependencies = [ 437 | "unicode-width", 438 | ] 439 | 440 | [[package]] 441 | name = "thin-dst" 442 | version = "1.1.0" 443 | source = "registry+https://github.com/rust-lang/crates.io-index" 444 | checksum = "db3c46be180f1af9673ebb27bc1235396f61ef6965b3fe0dbb2e624deb604f0e" 445 | 446 | [[package]] 447 | name = "thiserror" 448 | version = "1.0.63" 449 | source = "registry+https://github.com/rust-lang/crates.io-index" 450 | checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" 451 | dependencies = [ 452 | "thiserror-impl", 453 | ] 454 | 455 | [[package]] 456 | name = "thiserror-impl" 457 | version = "1.0.63" 458 | source = "registry+https://github.com/rust-lang/crates.io-index" 459 | checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" 460 | dependencies = [ 461 | "proc-macro2", 462 | "quote", 463 | "syn", 464 | ] 465 | 466 | [[package]] 467 | name = "unicode-ident" 468 | version = "1.0.13" 469 | source = "registry+https://github.com/rust-lang/crates.io-index" 470 | checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" 471 | 472 | [[package]] 473 | name = "unicode-width" 474 | version = "0.1.13" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" 477 | 478 | [[package]] 479 | name = "vec_map" 480 | version = "0.8.2" 481 | source = "registry+https://github.com/rust-lang/crates.io-index" 482 | checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" 483 | 484 | [[package]] 485 | name = "walkdir" 486 | version = "2.5.0" 487 | source = "registry+https://github.com/rust-lang/crates.io-index" 488 | checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" 489 | dependencies = [ 490 | "same-file", 491 | "winapi-util", 492 | ] 493 | 494 | [[package]] 495 | name = "winapi" 496 | version = "0.3.9" 497 | source = "registry+https://github.com/rust-lang/crates.io-index" 498 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 499 | dependencies = [ 500 | "winapi-i686-pc-windows-gnu", 501 | "winapi-x86_64-pc-windows-gnu", 502 | ] 503 | 504 | [[package]] 505 | name = "winapi-i686-pc-windows-gnu" 506 | version = "0.4.0" 507 | source = "registry+https://github.com/rust-lang/crates.io-index" 508 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 509 | 510 | [[package]] 511 | name = "winapi-util" 512 | version = "0.1.9" 513 | source = "registry+https://github.com/rust-lang/crates.io-index" 514 | checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" 515 | dependencies = [ 516 | "windows-sys", 517 | ] 518 | 519 | [[package]] 520 | name = "winapi-x86_64-pc-windows-gnu" 521 | version = "0.4.0" 522 | source = "registry+https://github.com/rust-lang/crates.io-index" 523 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 524 | 525 | [[package]] 526 | name = "windows-sys" 527 | version = "0.59.0" 528 | source = "registry+https://github.com/rust-lang/crates.io-index" 529 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 530 | dependencies = [ 531 | "windows-targets", 532 | ] 533 | 534 | [[package]] 535 | name = "windows-targets" 536 | version = "0.52.6" 537 | source = "registry+https://github.com/rust-lang/crates.io-index" 538 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 539 | dependencies = [ 540 | "windows_aarch64_gnullvm", 541 | "windows_aarch64_msvc", 542 | "windows_i686_gnu", 543 | "windows_i686_gnullvm", 544 | "windows_i686_msvc", 545 | "windows_x86_64_gnu", 546 | "windows_x86_64_gnullvm", 547 | "windows_x86_64_msvc", 548 | ] 549 | 550 | [[package]] 551 | name = "windows_aarch64_gnullvm" 552 | version = "0.52.6" 553 | source = "registry+https://github.com/rust-lang/crates.io-index" 554 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 555 | 556 | [[package]] 557 | name = "windows_aarch64_msvc" 558 | version = "0.52.6" 559 | source = "registry+https://github.com/rust-lang/crates.io-index" 560 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 561 | 562 | [[package]] 563 | name = "windows_i686_gnu" 564 | version = "0.52.6" 565 | source = "registry+https://github.com/rust-lang/crates.io-index" 566 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 567 | 568 | [[package]] 569 | name = "windows_i686_gnullvm" 570 | version = "0.52.6" 571 | source = "registry+https://github.com/rust-lang/crates.io-index" 572 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 573 | 574 | [[package]] 575 | name = "windows_i686_msvc" 576 | version = "0.52.6" 577 | source = "registry+https://github.com/rust-lang/crates.io-index" 578 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 579 | 580 | [[package]] 581 | name = "windows_x86_64_gnu" 582 | version = "0.52.6" 583 | source = "registry+https://github.com/rust-lang/crates.io-index" 584 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 585 | 586 | [[package]] 587 | name = "windows_x86_64_gnullvm" 588 | version = "0.52.6" 589 | source = "registry+https://github.com/rust-lang/crates.io-index" 590 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 591 | 592 | [[package]] 593 | name = "windows_x86_64_msvc" 594 | version = "0.52.6" 595 | source = "registry+https://github.com/rust-lang/crates.io-index" 596 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 597 | 598 | [[package]] 599 | name = "yaml-rust" 600 | version = "0.4.5" 601 | source = "registry+https://github.com/rust-lang/crates.io-index" 602 | checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" 603 | dependencies = [ 604 | "linked-hash-map", 605 | ] 606 | 607 | [[package]] 608 | name = "yaml2nix" 609 | version = "0.1.0" 610 | dependencies = [ 611 | "nixpkgs-fmt", 612 | "rnix 0.8.1", 613 | "serde", 614 | "serde-nix", 615 | "serde_yaml", 616 | ] 617 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Cargo.nix: -------------------------------------------------------------------------------- 1 | # This file was @generated by cargo2nix 0.11.0. 2 | # It is not intended to be manually edited. 3 | 4 | args@{ 5 | release ? true, 6 | rootFeatures ? [ 7 | "yaml2nix/default" 8 | ], 9 | rustPackages, 10 | buildRustPackages, 11 | hostPlatform, 12 | hostPlatformCpu ? null, 13 | hostPlatformFeatures ? [], 14 | target ? null, 15 | codegenOpts ? null, 16 | profileOpts ? null, 17 | cargoUnstableFlags ? null, 18 | rustcLinkFlags ? null, 19 | rustcBuildFlags ? null, 20 | mkRustCrate, 21 | rustLib, 22 | lib, 23 | workspaceSrc, 24 | ignoreLockHash, 25 | }: 26 | let 27 | nixifiedLockHash = "90048a2e850aa05876aca61d7308f677031018fbf78b9d76ce35be973b2e385e"; 28 | workspaceSrc = if args.workspaceSrc == null then ./. else args.workspaceSrc; 29 | currentLockHash = builtins.hashFile "sha256" (workspaceSrc + /Cargo.lock); 30 | lockHashIgnored = if ignoreLockHash 31 | then builtins.trace "Ignoring lock hash" ignoreLockHash 32 | else ignoreLockHash; 33 | in if !lockHashIgnored && (nixifiedLockHash != currentLockHash) then 34 | throw ("Cargo.nix ${nixifiedLockHash} is out of sync with Cargo.lock ${currentLockHash}") 35 | else let 36 | inherit (rustLib) fetchCratesIo fetchCrateLocal fetchCrateGit fetchCrateAlternativeRegistry expandFeatures decideProfile genDrvsByProfile; 37 | profilesByName = { 38 | }; 39 | rootFeatures' = expandFeatures rootFeatures; 40 | overridableMkRustCrate = f: 41 | let 42 | drvs = genDrvsByProfile profilesByName ({ profile, profileName }: mkRustCrate ({ inherit release profile hostPlatformCpu hostPlatformFeatures target profileOpts codegenOpts cargoUnstableFlags rustcLinkFlags rustcBuildFlags; } // (f profileName))); 43 | in { compileMode ? null, profileName ? decideProfile compileMode release }: 44 | let drv = drvs.${profileName}; in if compileMode == null then drv else drv.override { inherit compileMode; }; 45 | in 46 | { 47 | cargo2nixVersion = "0.11.0"; 48 | workspace = { 49 | yaml2nix = rustPackages.unknown.yaml2nix."0.1.0"; 50 | }; 51 | "registry+https://github.com/rust-lang/crates.io-index".aho-corasick."1.1.3" = overridableMkRustCrate (profileName: rec { 52 | name = "aho-corasick"; 53 | version = "1.1.3"; 54 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 55 | src = fetchCratesIo { inherit name version; sha256 = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"; }; 56 | features = builtins.concatLists [ 57 | [ "default" ] 58 | [ "perf-literal" ] 59 | [ "std" ] 60 | ]; 61 | dependencies = { 62 | memchr = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".memchr."2.7.4" { inherit profileName; }).out; 63 | }; 64 | }); 65 | 66 | "registry+https://github.com/rust-lang/crates.io-index".ansi_term."0.12.1" = overridableMkRustCrate (profileName: rec { 67 | name = "ansi_term"; 68 | version = "0.12.1"; 69 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 70 | src = fetchCratesIo { inherit name version; sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"; }; 71 | dependencies = { 72 | ${ if hostPlatform.parsed.kernel.name == "windows" then "winapi" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".winapi."0.3.9" { inherit profileName; }).out; 73 | }; 74 | }); 75 | 76 | "registry+https://github.com/rust-lang/crates.io-index".atty."0.2.14" = overridableMkRustCrate (profileName: rec { 77 | name = "atty"; 78 | version = "0.2.14"; 79 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 80 | src = fetchCratesIo { inherit name version; sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"; }; 81 | dependencies = { 82 | ${ if hostPlatform.parsed.kernel.name == "hermit" then "hermit_abi" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".hermit-abi."0.1.19" { inherit profileName; }).out; 83 | ${ if hostPlatform.isUnix then "libc" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".libc."0.2.158" { inherit profileName; }).out; 84 | ${ if hostPlatform.isWindows then "winapi" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".winapi."0.3.9" { inherit profileName; }).out; 85 | }; 86 | }); 87 | 88 | "registry+https://github.com/rust-lang/crates.io-index".autocfg."1.3.0" = overridableMkRustCrate (profileName: rec { 89 | name = "autocfg"; 90 | version = "1.3.0"; 91 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 92 | src = fetchCratesIo { inherit name version; sha256 = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"; }; 93 | }); 94 | 95 | "registry+https://github.com/rust-lang/crates.io-index".bitflags."1.3.2" = overridableMkRustCrate (profileName: rec { 96 | name = "bitflags"; 97 | version = "1.3.2"; 98 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 99 | src = fetchCratesIo { inherit name version; sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"; }; 100 | features = builtins.concatLists [ 101 | [ "default" ] 102 | ]; 103 | }); 104 | 105 | "registry+https://github.com/rust-lang/crates.io-index".bstr."1.10.0" = overridableMkRustCrate (profileName: rec { 106 | name = "bstr"; 107 | version = "1.10.0"; 108 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 109 | src = fetchCratesIo { inherit name version; sha256 = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c"; }; 110 | features = builtins.concatLists [ 111 | [ "alloc" ] 112 | [ "std" ] 113 | ]; 114 | dependencies = { 115 | memchr = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".memchr."2.7.4" { inherit profileName; }).out; 116 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 117 | }; 118 | }); 119 | 120 | "registry+https://github.com/rust-lang/crates.io-index".cbitset."0.2.0" = overridableMkRustCrate (profileName: rec { 121 | name = "cbitset"; 122 | version = "0.2.0"; 123 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 124 | src = fetchCratesIo { inherit name version; sha256 = "29b6ad25ae296159fb0da12b970b2fe179b234584d7cd294c891e2bbb284466b"; }; 125 | dependencies = { 126 | num_traits = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".num-traits."0.2.19" { inherit profileName; }).out; 127 | }; 128 | }); 129 | 130 | "registry+https://github.com/rust-lang/crates.io-index".cfg-if."0.1.10" = overridableMkRustCrate (profileName: rec { 131 | name = "cfg-if"; 132 | version = "0.1.10"; 133 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 134 | src = fetchCratesIo { inherit name version; sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"; }; 135 | }); 136 | 137 | "registry+https://github.com/rust-lang/crates.io-index".clap."2.34.0" = overridableMkRustCrate (profileName: rec { 138 | name = "clap"; 139 | version = "2.34.0"; 140 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 141 | src = fetchCratesIo { inherit name version; sha256 = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"; }; 142 | features = builtins.concatLists [ 143 | [ "ansi_term" ] 144 | [ "atty" ] 145 | [ "color" ] 146 | [ "default" ] 147 | [ "strsim" ] 148 | [ "suggestions" ] 149 | [ "vec_map" ] 150 | ]; 151 | dependencies = { 152 | ${ if !hostPlatform.isWindows then "ansi_term" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".ansi_term."0.12.1" { inherit profileName; }).out; 153 | atty = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".atty."0.2.14" { inherit profileName; }).out; 154 | bitflags = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".bitflags."1.3.2" { inherit profileName; }).out; 155 | strsim = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".strsim."0.8.0" { inherit profileName; }).out; 156 | textwrap = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".textwrap."0.11.0" { inherit profileName; }).out; 157 | unicode_width = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".unicode-width."0.1.13" { inherit profileName; }).out; 158 | vec_map = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".vec_map."0.8.2" { inherit profileName; }).out; 159 | }; 160 | }); 161 | 162 | "registry+https://github.com/rust-lang/crates.io-index".crossbeam-channel."0.3.9" = overridableMkRustCrate (profileName: rec { 163 | name = "crossbeam-channel"; 164 | version = "0.3.9"; 165 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 166 | src = fetchCratesIo { inherit name version; sha256 = "c8ec7fcd21571dc78f96cc96243cab8d8f035247c3efd16c687be154c3fa9efa"; }; 167 | dependencies = { 168 | crossbeam_utils = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".crossbeam-utils."0.6.6" { inherit profileName; }).out; 169 | }; 170 | }); 171 | 172 | "registry+https://github.com/rust-lang/crates.io-index".crossbeam-deque."0.8.5" = overridableMkRustCrate (profileName: rec { 173 | name = "crossbeam-deque"; 174 | version = "0.8.5"; 175 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 176 | src = fetchCratesIo { inherit name version; sha256 = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"; }; 177 | features = builtins.concatLists [ 178 | [ "default" ] 179 | [ "std" ] 180 | ]; 181 | dependencies = { 182 | crossbeam_epoch = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".crossbeam-epoch."0.9.18" { inherit profileName; }).out; 183 | crossbeam_utils = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".crossbeam-utils."0.8.20" { inherit profileName; }).out; 184 | }; 185 | }); 186 | 187 | "registry+https://github.com/rust-lang/crates.io-index".crossbeam-epoch."0.9.18" = overridableMkRustCrate (profileName: rec { 188 | name = "crossbeam-epoch"; 189 | version = "0.9.18"; 190 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 191 | src = fetchCratesIo { inherit name version; sha256 = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"; }; 192 | features = builtins.concatLists [ 193 | [ "alloc" ] 194 | [ "std" ] 195 | ]; 196 | dependencies = { 197 | crossbeam_utils = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".crossbeam-utils."0.8.20" { inherit profileName; }).out; 198 | }; 199 | }); 200 | 201 | "registry+https://github.com/rust-lang/crates.io-index".crossbeam-utils."0.6.6" = overridableMkRustCrate (profileName: rec { 202 | name = "crossbeam-utils"; 203 | version = "0.6.6"; 204 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 205 | src = fetchCratesIo { inherit name version; sha256 = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6"; }; 206 | features = builtins.concatLists [ 207 | [ "default" ] 208 | [ "lazy_static" ] 209 | [ "std" ] 210 | ]; 211 | dependencies = { 212 | cfg_if = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".cfg-if."0.1.10" { inherit profileName; }).out; 213 | lazy_static = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".lazy_static."1.5.0" { inherit profileName; }).out; 214 | }; 215 | }); 216 | 217 | "registry+https://github.com/rust-lang/crates.io-index".crossbeam-utils."0.8.20" = overridableMkRustCrate (profileName: rec { 218 | name = "crossbeam-utils"; 219 | version = "0.8.20"; 220 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 221 | src = fetchCratesIo { inherit name version; sha256 = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"; }; 222 | features = builtins.concatLists [ 223 | [ "std" ] 224 | ]; 225 | }); 226 | 227 | "registry+https://github.com/rust-lang/crates.io-index".globset."0.4.15" = overridableMkRustCrate (profileName: rec { 228 | name = "globset"; 229 | version = "0.4.15"; 230 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 231 | src = fetchCratesIo { inherit name version; sha256 = "15f1ce686646e7f1e19bf7d5533fe443a45dbfb990e00629110797578b42fb19"; }; 232 | features = builtins.concatLists [ 233 | [ "default" ] 234 | [ "log" ] 235 | ]; 236 | dependencies = { 237 | aho_corasick = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".aho-corasick."1.1.3" { inherit profileName; }).out; 238 | bstr = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".bstr."1.10.0" { inherit profileName; }).out; 239 | log = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".log."0.4.22" { inherit profileName; }).out; 240 | regex_automata = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".regex-automata."0.4.7" { inherit profileName; }).out; 241 | regex_syntax = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".regex-syntax."0.8.4" { inherit profileName; }).out; 242 | }; 243 | }); 244 | 245 | "registry+https://github.com/rust-lang/crates.io-index".hashbrown."0.12.3" = overridableMkRustCrate (profileName: rec { 246 | name = "hashbrown"; 247 | version = "0.12.3"; 248 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 249 | src = fetchCratesIo { inherit name version; sha256 = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"; }; 250 | features = builtins.concatLists [ 251 | [ "raw" ] 252 | ]; 253 | }); 254 | 255 | "registry+https://github.com/rust-lang/crates.io-index".hermit-abi."0.1.19" = overridableMkRustCrate (profileName: rec { 256 | name = "hermit-abi"; 257 | version = "0.1.19"; 258 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 259 | src = fetchCratesIo { inherit name version; sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"; }; 260 | features = builtins.concatLists [ 261 | [ "default" ] 262 | ]; 263 | dependencies = { 264 | libc = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".libc."0.2.158" { inherit profileName; }).out; 265 | }; 266 | }); 267 | 268 | "registry+https://github.com/rust-lang/crates.io-index".ignore."0.4.23" = overridableMkRustCrate (profileName: rec { 269 | name = "ignore"; 270 | version = "0.4.23"; 271 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 272 | src = fetchCratesIo { inherit name version; sha256 = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b"; }; 273 | dependencies = { 274 | crossbeam_deque = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".crossbeam-deque."0.8.5" { inherit profileName; }).out; 275 | globset = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".globset."0.4.15" { inherit profileName; }).out; 276 | log = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".log."0.4.22" { inherit profileName; }).out; 277 | memchr = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".memchr."2.7.4" { inherit profileName; }).out; 278 | regex_automata = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".regex-automata."0.4.7" { inherit profileName; }).out; 279 | same_file = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".same-file."1.0.6" { inherit profileName; }).out; 280 | walkdir = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".walkdir."2.5.0" { inherit profileName; }).out; 281 | ${ if hostPlatform.isWindows then "winapi_util" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".winapi-util."0.1.9" { inherit profileName; }).out; 282 | }; 283 | }); 284 | 285 | "registry+https://github.com/rust-lang/crates.io-index".indexmap."1.9.3" = overridableMkRustCrate (profileName: rec { 286 | name = "indexmap"; 287 | version = "1.9.3"; 288 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 289 | src = fetchCratesIo { inherit name version; sha256 = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"; }; 290 | features = builtins.concatLists [ 291 | [ "std" ] 292 | ]; 293 | dependencies = { 294 | hashbrown = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".hashbrown."0.12.3" { inherit profileName; }).out; 295 | }; 296 | buildDependencies = { 297 | autocfg = (buildRustPackages."registry+https://github.com/rust-lang/crates.io-index".autocfg."1.3.0" { profileName = "__noProfile"; }).out; 298 | }; 299 | }); 300 | 301 | "registry+https://github.com/rust-lang/crates.io-index".itoa."1.0.11" = overridableMkRustCrate (profileName: rec { 302 | name = "itoa"; 303 | version = "1.0.11"; 304 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 305 | src = fetchCratesIo { inherit name version; sha256 = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"; }; 306 | }); 307 | 308 | "registry+https://github.com/rust-lang/crates.io-index".lazy_static."1.5.0" = overridableMkRustCrate (profileName: rec { 309 | name = "lazy_static"; 310 | version = "1.5.0"; 311 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 312 | src = fetchCratesIo { inherit name version; sha256 = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"; }; 313 | }); 314 | 315 | "registry+https://github.com/rust-lang/crates.io-index".libc."0.2.158" = overridableMkRustCrate (profileName: rec { 316 | name = "libc"; 317 | version = "0.2.158"; 318 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 319 | src = fetchCratesIo { inherit name version; sha256 = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"; }; 320 | }); 321 | 322 | "registry+https://github.com/rust-lang/crates.io-index".linked-hash-map."0.5.6" = overridableMkRustCrate (profileName: rec { 323 | name = "linked-hash-map"; 324 | version = "0.5.6"; 325 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 326 | src = fetchCratesIo { inherit name version; sha256 = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"; }; 327 | }); 328 | 329 | "registry+https://github.com/rust-lang/crates.io-index".log."0.4.22" = overridableMkRustCrate (profileName: rec { 330 | name = "log"; 331 | version = "0.4.22"; 332 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 333 | src = fetchCratesIo { inherit name version; sha256 = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"; }; 334 | }); 335 | 336 | "registry+https://github.com/rust-lang/crates.io-index".memchr."2.7.4" = overridableMkRustCrate (profileName: rec { 337 | name = "memchr"; 338 | version = "2.7.4"; 339 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 340 | src = fetchCratesIo { inherit name version; sha256 = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"; }; 341 | features = builtins.concatLists [ 342 | [ "alloc" ] 343 | [ "default" ] 344 | [ "std" ] 345 | ]; 346 | }); 347 | 348 | "registry+https://github.com/rust-lang/crates.io-index".nixpkgs-fmt."0.9.0" = overridableMkRustCrate (profileName: rec { 349 | name = "nixpkgs-fmt"; 350 | version = "0.9.0"; 351 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 352 | src = fetchCratesIo { inherit name version; sha256 = "2f6eca38e3ef7e74b62d4ad0c9adc79e122f85163edc69ce5943e1ec325a2989"; }; 353 | dependencies = { 354 | clap = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".clap."2.34.0" { inherit profileName; }).out; 355 | crossbeam_channel = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".crossbeam-channel."0.3.9" { inherit profileName; }).out; 356 | ignore = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".ignore."0.4.23" { inherit profileName; }).out; 357 | rnix = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".rnix."0.7.2" { inherit profileName; }).out; 358 | rowan = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".rowan."0.6.3" { inherit profileName; }).out; 359 | serde_json = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde_json."1.0.128" { inherit profileName; }).out; 360 | }; 361 | }); 362 | 363 | "registry+https://github.com/rust-lang/crates.io-index".num-traits."0.2.19" = overridableMkRustCrate (profileName: rec { 364 | name = "num-traits"; 365 | version = "0.2.19"; 366 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 367 | src = fetchCratesIo { inherit name version; sha256 = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"; }; 368 | buildDependencies = { 369 | autocfg = (buildRustPackages."registry+https://github.com/rust-lang/crates.io-index".autocfg."1.3.0" { profileName = "__noProfile"; }).out; 370 | }; 371 | }); 372 | 373 | "registry+https://github.com/rust-lang/crates.io-index".proc-macro2."1.0.86" = overridableMkRustCrate (profileName: rec { 374 | name = "proc-macro2"; 375 | version = "1.0.86"; 376 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 377 | src = fetchCratesIo { inherit name version; sha256 = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"; }; 378 | features = builtins.concatLists [ 379 | [ "default" ] 380 | [ "proc-macro" ] 381 | ]; 382 | dependencies = { 383 | unicode_ident = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".unicode-ident."1.0.13" { inherit profileName; }).out; 384 | }; 385 | }); 386 | 387 | "registry+https://github.com/rust-lang/crates.io-index".quote."1.0.37" = overridableMkRustCrate (profileName: rec { 388 | name = "quote"; 389 | version = "1.0.37"; 390 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 391 | src = fetchCratesIo { inherit name version; sha256 = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"; }; 392 | features = builtins.concatLists [ 393 | [ "default" ] 394 | [ "proc-macro" ] 395 | ]; 396 | dependencies = { 397 | proc_macro2 = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".proc-macro2."1.0.86" { inherit profileName; }).out; 398 | }; 399 | }); 400 | 401 | "registry+https://github.com/rust-lang/crates.io-index".regex-automata."0.4.7" = overridableMkRustCrate (profileName: rec { 402 | name = "regex-automata"; 403 | version = "0.4.7"; 404 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 405 | src = fetchCratesIo { inherit name version; sha256 = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"; }; 406 | features = builtins.concatLists [ 407 | [ "alloc" ] 408 | [ "dfa-onepass" ] 409 | [ "hybrid" ] 410 | [ "meta" ] 411 | [ "nfa" ] 412 | [ "nfa-backtrack" ] 413 | [ "nfa-pikevm" ] 414 | [ "nfa-thompson" ] 415 | [ "perf" ] 416 | [ "perf-inline" ] 417 | [ "perf-literal" ] 418 | [ "perf-literal-multisubstring" ] 419 | [ "perf-literal-substring" ] 420 | [ "std" ] 421 | [ "syntax" ] 422 | ]; 423 | dependencies = { 424 | aho_corasick = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".aho-corasick."1.1.3" { inherit profileName; }).out; 425 | memchr = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".memchr."2.7.4" { inherit profileName; }).out; 426 | regex_syntax = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".regex-syntax."0.8.4" { inherit profileName; }).out; 427 | }; 428 | }); 429 | 430 | "registry+https://github.com/rust-lang/crates.io-index".regex-syntax."0.8.4" = overridableMkRustCrate (profileName: rec { 431 | name = "regex-syntax"; 432 | version = "0.8.4"; 433 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 434 | src = fetchCratesIo { inherit name version; sha256 = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"; }; 435 | features = builtins.concatLists [ 436 | [ "std" ] 437 | ]; 438 | }); 439 | 440 | "registry+https://github.com/rust-lang/crates.io-index".rnix."0.7.2" = overridableMkRustCrate (profileName: rec { 441 | name = "rnix"; 442 | version = "0.7.2"; 443 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 444 | src = fetchCratesIo { inherit name version; sha256 = "2192039d0f383be6e0edb37718152c764509ce800cafe51f58f88b27bf0e4714"; }; 445 | dependencies = { 446 | cbitset = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".cbitset."0.2.0" { inherit profileName; }).out; 447 | rowan = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".rowan."0.6.3" { inherit profileName; }).out; 448 | }; 449 | }); 450 | 451 | "registry+https://github.com/rust-lang/crates.io-index".rnix."0.8.1" = overridableMkRustCrate (profileName: rec { 452 | name = "rnix"; 453 | version = "0.8.1"; 454 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 455 | src = fetchCratesIo { inherit name version; sha256 = "0a9b645f0edba447dbfc6473dd22999f46a1d00ab39e777a2713a1cf34a1597b"; }; 456 | dependencies = { 457 | cbitset = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".cbitset."0.2.0" { inherit profileName; }).out; 458 | rowan = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".rowan."0.9.1" { inherit profileName; }).out; 459 | }; 460 | }); 461 | 462 | "registry+https://github.com/rust-lang/crates.io-index".rowan."0.6.3" = overridableMkRustCrate (profileName: rec { 463 | name = "rowan"; 464 | version = "0.6.3"; 465 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 466 | src = fetchCratesIo { inherit name version; sha256 = "fc3a6fb2a35518af7cab43ec4e21ca82eb086a8b3bb1739e426dc3923d459607"; }; 467 | features = builtins.concatLists [ 468 | [ "serde" ] 469 | [ "serde1" ] 470 | ]; 471 | dependencies = { 472 | rustc_hash = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".rustc-hash."1.1.0" { inherit profileName; }).out; 473 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 474 | smol_str = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".smol_str."0.1.24" { inherit profileName; }).out; 475 | text_unit = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".text_unit."0.1.10" { inherit profileName; }).out; 476 | }; 477 | }); 478 | 479 | "registry+https://github.com/rust-lang/crates.io-index".rowan."0.9.1" = overridableMkRustCrate (profileName: rec { 480 | name = "rowan"; 481 | version = "0.9.1"; 482 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 483 | src = fetchCratesIo { inherit name version; sha256 = "1ea7cadf87a9d8432e85cb4eb86bd2e765ace60c24ef86e79084dcae5d1c5a19"; }; 484 | dependencies = { 485 | rustc_hash = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".rustc-hash."1.1.0" { inherit profileName; }).out; 486 | smol_str = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".smol_str."0.1.24" { inherit profileName; }).out; 487 | text_unit = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".text_unit."0.1.10" { inherit profileName; }).out; 488 | thin_dst = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".thin-dst."1.1.0" { inherit profileName; }).out; 489 | }; 490 | }); 491 | 492 | "registry+https://github.com/rust-lang/crates.io-index".rustc-hash."1.1.0" = overridableMkRustCrate (profileName: rec { 493 | name = "rustc-hash"; 494 | version = "1.1.0"; 495 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 496 | src = fetchCratesIo { inherit name version; sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"; }; 497 | features = builtins.concatLists [ 498 | [ "default" ] 499 | [ "std" ] 500 | ]; 501 | }); 502 | 503 | "registry+https://github.com/rust-lang/crates.io-index".ryu."1.0.18" = overridableMkRustCrate (profileName: rec { 504 | name = "ryu"; 505 | version = "1.0.18"; 506 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 507 | src = fetchCratesIo { inherit name version; sha256 = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"; }; 508 | }); 509 | 510 | "registry+https://github.com/rust-lang/crates.io-index".same-file."1.0.6" = overridableMkRustCrate (profileName: rec { 511 | name = "same-file"; 512 | version = "1.0.6"; 513 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 514 | src = fetchCratesIo { inherit name version; sha256 = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"; }; 515 | dependencies = { 516 | ${ if hostPlatform.isWindows then "winapi_util" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".winapi-util."0.1.9" { inherit profileName; }).out; 517 | }; 518 | }); 519 | 520 | "registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" = overridableMkRustCrate (profileName: rec { 521 | name = "serde"; 522 | version = "1.0.210"; 523 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 524 | src = fetchCratesIo { inherit name version; sha256 = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a"; }; 525 | features = builtins.concatLists [ 526 | [ "alloc" ] 527 | [ "default" ] 528 | [ "std" ] 529 | ]; 530 | dependencies = { 531 | ${ if false then "serde_derive" else null } = (buildRustPackages."registry+https://github.com/rust-lang/crates.io-index".serde_derive."1.0.210" { profileName = "__noProfile"; }).out; 532 | }; 533 | }); 534 | 535 | "git+https://github.com/euank/serde-nix.git".serde-nix."0.1.0" = overridableMkRustCrate (profileName: rec { 536 | name = "serde-nix"; 537 | version = "0.1.0"; 538 | registry = "git+https://github.com/euank/serde-nix.git"; 539 | src = fetchCrateGit { 540 | url = "https://github.com/euank/serde-nix.git"; 541 | name = "serde-nix"; 542 | version = "0.1.0"; 543 | rev = "1e3d04d88dcbec91d0aec050a4a53cd5e8c5e2d4";}; 544 | dependencies = { 545 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 546 | thiserror = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".thiserror."1.0.63" { inherit profileName; }).out; 547 | }; 548 | }); 549 | 550 | "registry+https://github.com/rust-lang/crates.io-index".serde_derive."1.0.210" = overridableMkRustCrate (profileName: rec { 551 | name = "serde_derive"; 552 | version = "1.0.210"; 553 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 554 | src = fetchCratesIo { inherit name version; sha256 = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"; }; 555 | features = builtins.concatLists [ 556 | [ "default" ] 557 | ]; 558 | dependencies = { 559 | proc_macro2 = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".proc-macro2."1.0.86" { inherit profileName; }).out; 560 | quote = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".quote."1.0.37" { inherit profileName; }).out; 561 | syn = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".syn."2.0.77" { inherit profileName; }).out; 562 | }; 563 | }); 564 | 565 | "registry+https://github.com/rust-lang/crates.io-index".serde_json."1.0.128" = overridableMkRustCrate (profileName: rec { 566 | name = "serde_json"; 567 | version = "1.0.128"; 568 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 569 | src = fetchCratesIo { inherit name version; sha256 = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8"; }; 570 | features = builtins.concatLists [ 571 | [ "default" ] 572 | [ "std" ] 573 | ]; 574 | dependencies = { 575 | itoa = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".itoa."1.0.11" { inherit profileName; }).out; 576 | memchr = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".memchr."2.7.4" { inherit profileName; }).out; 577 | ryu = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".ryu."1.0.18" { inherit profileName; }).out; 578 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 579 | }; 580 | }); 581 | 582 | "registry+https://github.com/rust-lang/crates.io-index".serde_yaml."0.8.26" = overridableMkRustCrate (profileName: rec { 583 | name = "serde_yaml"; 584 | version = "0.8.26"; 585 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 586 | src = fetchCratesIo { inherit name version; sha256 = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b"; }; 587 | dependencies = { 588 | indexmap = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".indexmap."1.9.3" { inherit profileName; }).out; 589 | ryu = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".ryu."1.0.18" { inherit profileName; }).out; 590 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 591 | yaml_rust = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".yaml-rust."0.4.5" { inherit profileName; }).out; 592 | }; 593 | }); 594 | 595 | "registry+https://github.com/rust-lang/crates.io-index".smol_str."0.1.24" = overridableMkRustCrate (profileName: rec { 596 | name = "smol_str"; 597 | version = "0.1.24"; 598 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 599 | src = fetchCratesIo { inherit name version; sha256 = "fad6c857cbab2627dcf01ec85a623ca4e7dcb5691cbaa3d7fb7653671f0d09c9"; }; 600 | features = builtins.concatLists [ 601 | [ "default" ] 602 | [ "serde" ] 603 | [ "std" ] 604 | ]; 605 | dependencies = { 606 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 607 | }; 608 | }); 609 | 610 | "registry+https://github.com/rust-lang/crates.io-index".strsim."0.8.0" = overridableMkRustCrate (profileName: rec { 611 | name = "strsim"; 612 | version = "0.8.0"; 613 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 614 | src = fetchCratesIo { inherit name version; sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"; }; 615 | }); 616 | 617 | "registry+https://github.com/rust-lang/crates.io-index".syn."2.0.77" = overridableMkRustCrate (profileName: rec { 618 | name = "syn"; 619 | version = "2.0.77"; 620 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 621 | src = fetchCratesIo { inherit name version; sha256 = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed"; }; 622 | features = builtins.concatLists [ 623 | [ "clone-impls" ] 624 | [ "default" ] 625 | [ "derive" ] 626 | [ "parsing" ] 627 | [ "printing" ] 628 | [ "proc-macro" ] 629 | ]; 630 | dependencies = { 631 | proc_macro2 = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".proc-macro2."1.0.86" { inherit profileName; }).out; 632 | quote = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".quote."1.0.37" { inherit profileName; }).out; 633 | unicode_ident = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".unicode-ident."1.0.13" { inherit profileName; }).out; 634 | }; 635 | }); 636 | 637 | "registry+https://github.com/rust-lang/crates.io-index".text_unit."0.1.10" = overridableMkRustCrate (profileName: rec { 638 | name = "text_unit"; 639 | version = "0.1.10"; 640 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 641 | src = fetchCratesIo { inherit name version; sha256 = "20431e104bfecc1a40872578dbc390e10290a0e9c35fffe3ce6f73c15a9dbfc2"; }; 642 | features = builtins.concatLists [ 643 | [ "serde" ] 644 | ]; 645 | dependencies = { 646 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 647 | }; 648 | }); 649 | 650 | "registry+https://github.com/rust-lang/crates.io-index".textwrap."0.11.0" = overridableMkRustCrate (profileName: rec { 651 | name = "textwrap"; 652 | version = "0.11.0"; 653 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 654 | src = fetchCratesIo { inherit name version; sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"; }; 655 | dependencies = { 656 | unicode_width = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".unicode-width."0.1.13" { inherit profileName; }).out; 657 | }; 658 | }); 659 | 660 | "registry+https://github.com/rust-lang/crates.io-index".thin-dst."1.1.0" = overridableMkRustCrate (profileName: rec { 661 | name = "thin-dst"; 662 | version = "1.1.0"; 663 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 664 | src = fetchCratesIo { inherit name version; sha256 = "db3c46be180f1af9673ebb27bc1235396f61ef6965b3fe0dbb2e624deb604f0e"; }; 665 | }); 666 | 667 | "registry+https://github.com/rust-lang/crates.io-index".thiserror."1.0.63" = overridableMkRustCrate (profileName: rec { 668 | name = "thiserror"; 669 | version = "1.0.63"; 670 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 671 | src = fetchCratesIo { inherit name version; sha256 = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724"; }; 672 | dependencies = { 673 | thiserror_impl = (buildRustPackages."registry+https://github.com/rust-lang/crates.io-index".thiserror-impl."1.0.63" { profileName = "__noProfile"; }).out; 674 | }; 675 | }); 676 | 677 | "registry+https://github.com/rust-lang/crates.io-index".thiserror-impl."1.0.63" = overridableMkRustCrate (profileName: rec { 678 | name = "thiserror-impl"; 679 | version = "1.0.63"; 680 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 681 | src = fetchCratesIo { inherit name version; sha256 = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261"; }; 682 | dependencies = { 683 | proc_macro2 = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".proc-macro2."1.0.86" { inherit profileName; }).out; 684 | quote = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".quote."1.0.37" { inherit profileName; }).out; 685 | syn = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".syn."2.0.77" { inherit profileName; }).out; 686 | }; 687 | }); 688 | 689 | "registry+https://github.com/rust-lang/crates.io-index".unicode-ident."1.0.13" = overridableMkRustCrate (profileName: rec { 690 | name = "unicode-ident"; 691 | version = "1.0.13"; 692 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 693 | src = fetchCratesIo { inherit name version; sha256 = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"; }; 694 | }); 695 | 696 | "registry+https://github.com/rust-lang/crates.io-index".unicode-width."0.1.13" = overridableMkRustCrate (profileName: rec { 697 | name = "unicode-width"; 698 | version = "0.1.13"; 699 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 700 | src = fetchCratesIo { inherit name version; sha256 = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"; }; 701 | features = builtins.concatLists [ 702 | [ "default" ] 703 | ]; 704 | }); 705 | 706 | "registry+https://github.com/rust-lang/crates.io-index".vec_map."0.8.2" = overridableMkRustCrate (profileName: rec { 707 | name = "vec_map"; 708 | version = "0.8.2"; 709 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 710 | src = fetchCratesIo { inherit name version; sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"; }; 711 | }); 712 | 713 | "registry+https://github.com/rust-lang/crates.io-index".walkdir."2.5.0" = overridableMkRustCrate (profileName: rec { 714 | name = "walkdir"; 715 | version = "2.5.0"; 716 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 717 | src = fetchCratesIo { inherit name version; sha256 = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"; }; 718 | dependencies = { 719 | same_file = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".same-file."1.0.6" { inherit profileName; }).out; 720 | ${ if hostPlatform.isWindows then "winapi_util" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".winapi-util."0.1.9" { inherit profileName; }).out; 721 | }; 722 | }); 723 | 724 | "registry+https://github.com/rust-lang/crates.io-index".winapi."0.3.9" = overridableMkRustCrate (profileName: rec { 725 | name = "winapi"; 726 | version = "0.3.9"; 727 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 728 | src = fetchCratesIo { inherit name version; sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"; }; 729 | features = builtins.concatLists [ 730 | [ "consoleapi" ] 731 | [ "errhandlingapi" ] 732 | [ "fileapi" ] 733 | [ "handleapi" ] 734 | [ "minwinbase" ] 735 | [ "minwindef" ] 736 | [ "processenv" ] 737 | [ "winbase" ] 738 | ]; 739 | dependencies = { 740 | ${ if hostPlatform.config == "i686-pc-windows-gnu" then "winapi_i686_pc_windows_gnu" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".winapi-i686-pc-windows-gnu."0.4.0" { inherit profileName; }).out; 741 | ${ if hostPlatform.config == "x86_64-pc-windows-gnu" then "winapi_x86_64_pc_windows_gnu" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".winapi-x86_64-pc-windows-gnu."0.4.0" { inherit profileName; }).out; 742 | }; 743 | }); 744 | 745 | "registry+https://github.com/rust-lang/crates.io-index".winapi-i686-pc-windows-gnu."0.4.0" = overridableMkRustCrate (profileName: rec { 746 | name = "winapi-i686-pc-windows-gnu"; 747 | version = "0.4.0"; 748 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 749 | src = fetchCratesIo { inherit name version; sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"; }; 750 | }); 751 | 752 | "registry+https://github.com/rust-lang/crates.io-index".winapi-util."0.1.9" = overridableMkRustCrate (profileName: rec { 753 | name = "winapi-util"; 754 | version = "0.1.9"; 755 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 756 | src = fetchCratesIo { inherit name version; sha256 = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"; }; 757 | dependencies = { 758 | ${ if hostPlatform.isWindows then "windows_sys" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows-sys."0.59.0" { inherit profileName; }).out; 759 | }; 760 | }); 761 | 762 | "registry+https://github.com/rust-lang/crates.io-index".winapi-x86_64-pc-windows-gnu."0.4.0" = overridableMkRustCrate (profileName: rec { 763 | name = "winapi-x86_64-pc-windows-gnu"; 764 | version = "0.4.0"; 765 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 766 | src = fetchCratesIo { inherit name version; sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"; }; 767 | }); 768 | 769 | "registry+https://github.com/rust-lang/crates.io-index".windows-sys."0.59.0" = overridableMkRustCrate (profileName: rec { 770 | name = "windows-sys"; 771 | version = "0.59.0"; 772 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 773 | src = fetchCratesIo { inherit name version; sha256 = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"; }; 774 | features = builtins.concatLists [ 775 | [ "Win32" ] 776 | [ "Win32_Foundation" ] 777 | [ "Win32_Storage" ] 778 | [ "Win32_Storage_FileSystem" ] 779 | [ "Win32_System" ] 780 | [ "Win32_System_Console" ] 781 | [ "Win32_System_SystemInformation" ] 782 | [ "default" ] 783 | ]; 784 | dependencies = { 785 | windows_targets = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows-targets."0.52.6" { inherit profileName; }).out; 786 | }; 787 | }); 788 | 789 | "registry+https://github.com/rust-lang/crates.io-index".windows-targets."0.52.6" = overridableMkRustCrate (profileName: rec { 790 | name = "windows-targets"; 791 | version = "0.52.6"; 792 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 793 | src = fetchCratesIo { inherit name version; sha256 = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"; }; 794 | dependencies = { 795 | ${ if hostPlatform.config == "aarch64-pc-windows-gnullvm" then "windows_aarch64_gnullvm" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_aarch64_gnullvm."0.52.6" { inherit profileName; }).out; 796 | ${ if hostPlatform.parsed.cpu.name == "aarch64" && hostPlatform.parsed.abi.name == "msvc" then "windows_aarch64_msvc" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_aarch64_msvc."0.52.6" { inherit profileName; }).out; 797 | ${ if hostPlatform.parsed.cpu.name == "i686" && hostPlatform.parsed.abi.name == "gnu" then "windows_i686_gnu" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_i686_gnu."0.52.6" { inherit profileName; }).out; 798 | ${ if hostPlatform.config == "i686-pc-windows-gnullvm" then "windows_i686_gnullvm" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_i686_gnullvm."0.52.6" { inherit profileName; }).out; 799 | ${ if hostPlatform.parsed.cpu.name == "i686" && hostPlatform.parsed.abi.name == "msvc" then "windows_i686_msvc" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_i686_msvc."0.52.6" { inherit profileName; }).out; 800 | ${ if hostPlatform.parsed.cpu.name == "x86_64" && hostPlatform.parsed.abi.name == "gnu" then "windows_x86_64_gnu" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_x86_64_gnu."0.52.6" { inherit profileName; }).out; 801 | ${ if hostPlatform.config == "x86_64-pc-windows-gnullvm" then "windows_x86_64_gnullvm" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_x86_64_gnullvm."0.52.6" { inherit profileName; }).out; 802 | ${ if (hostPlatform.parsed.cpu.name == "x86_64" || hostPlatform.parsed.cpu.name == "arm64ec") && hostPlatform.parsed.abi.name == "msvc" then "windows_x86_64_msvc" else null } = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".windows_x86_64_msvc."0.52.6" { inherit profileName; }).out; 803 | }; 804 | }); 805 | 806 | "registry+https://github.com/rust-lang/crates.io-index".windows_aarch64_gnullvm."0.52.6" = overridableMkRustCrate (profileName: rec { 807 | name = "windows_aarch64_gnullvm"; 808 | version = "0.52.6"; 809 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 810 | src = fetchCratesIo { inherit name version; sha256 = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"; }; 811 | }); 812 | 813 | "registry+https://github.com/rust-lang/crates.io-index".windows_aarch64_msvc."0.52.6" = overridableMkRustCrate (profileName: rec { 814 | name = "windows_aarch64_msvc"; 815 | version = "0.52.6"; 816 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 817 | src = fetchCratesIo { inherit name version; sha256 = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"; }; 818 | }); 819 | 820 | "registry+https://github.com/rust-lang/crates.io-index".windows_i686_gnu."0.52.6" = overridableMkRustCrate (profileName: rec { 821 | name = "windows_i686_gnu"; 822 | version = "0.52.6"; 823 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 824 | src = fetchCratesIo { inherit name version; sha256 = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"; }; 825 | }); 826 | 827 | "registry+https://github.com/rust-lang/crates.io-index".windows_i686_gnullvm."0.52.6" = overridableMkRustCrate (profileName: rec { 828 | name = "windows_i686_gnullvm"; 829 | version = "0.52.6"; 830 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 831 | src = fetchCratesIo { inherit name version; sha256 = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"; }; 832 | }); 833 | 834 | "registry+https://github.com/rust-lang/crates.io-index".windows_i686_msvc."0.52.6" = overridableMkRustCrate (profileName: rec { 835 | name = "windows_i686_msvc"; 836 | version = "0.52.6"; 837 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 838 | src = fetchCratesIo { inherit name version; sha256 = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"; }; 839 | }); 840 | 841 | "registry+https://github.com/rust-lang/crates.io-index".windows_x86_64_gnu."0.52.6" = overridableMkRustCrate (profileName: rec { 842 | name = "windows_x86_64_gnu"; 843 | version = "0.52.6"; 844 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 845 | src = fetchCratesIo { inherit name version; sha256 = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"; }; 846 | }); 847 | 848 | "registry+https://github.com/rust-lang/crates.io-index".windows_x86_64_gnullvm."0.52.6" = overridableMkRustCrate (profileName: rec { 849 | name = "windows_x86_64_gnullvm"; 850 | version = "0.52.6"; 851 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 852 | src = fetchCratesIo { inherit name version; sha256 = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"; }; 853 | }); 854 | 855 | "registry+https://github.com/rust-lang/crates.io-index".windows_x86_64_msvc."0.52.6" = overridableMkRustCrate (profileName: rec { 856 | name = "windows_x86_64_msvc"; 857 | version = "0.52.6"; 858 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 859 | src = fetchCratesIo { inherit name version; sha256 = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"; }; 860 | }); 861 | 862 | "registry+https://github.com/rust-lang/crates.io-index".yaml-rust."0.4.5" = overridableMkRustCrate (profileName: rec { 863 | name = "yaml-rust"; 864 | version = "0.4.5"; 865 | registry = "registry+https://github.com/rust-lang/crates.io-index"; 866 | src = fetchCratesIo { inherit name version; sha256 = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"; }; 867 | dependencies = { 868 | linked_hash_map = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".linked-hash-map."0.5.6" { inherit profileName; }).out; 869 | }; 870 | }); 871 | 872 | "unknown".yaml2nix."0.1.0" = overridableMkRustCrate (profileName: rec { 873 | name = "yaml2nix"; 874 | version = "0.1.0"; 875 | registry = "unknown"; 876 | src = fetchCrateLocal workspaceSrc; 877 | dependencies = { 878 | nixpkgs_fmt = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".nixpkgs-fmt."0.9.0" { inherit profileName; }).out; 879 | rnix = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".rnix."0.8.1" { inherit profileName; }).out; 880 | serde = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde."1.0.210" { inherit profileName; }).out; 881 | serde_nix = (rustPackages."git+https://github.com/euank/serde-nix.git".serde-nix."0.1.0" { inherit profileName; }).out; 882 | serde_yaml = (rustPackages."registry+https://github.com/rust-lang/crates.io-index".serde_yaml."0.8.26" { inherit profileName; }).out; 883 | }; 884 | }); 885 | 886 | } 887 | --------------------------------------------------------------------------------