| 7 May 2023 |
raitobezarius | or are you talking about something else? | 21:56:36 |
figsoda | In reply to @raitobezarius:matrix.org the only way to hint about the buildable ones would be to compute the rust_vendors, etc. oh yeah that would probably be too much for e.g. python packages | 21:57:30 |
figsoda | I would say showing the files found is good, something like bindings/rust (Cargo.lock, Cargo.toml), bindings/python (pyproject.toml) | 21:58:31 |
raitobezarius | hmm | 21:58:55 |
raitobezarius | then List does not cut it | 21:58:59 |
raitobezarius | I won't do this part right now right now | 21:59:09 |
raitobezarius | I will hack a workable version for my packaging | 21:59:13 |
raitobezarius | and then we can improve it | 21:59:15 |
raitobezarius | I'm almost done with v1 | 21:59:22 |
figsoda | if that's too much we can improve it later | 21:59:23 |
raitobezarius | what does | 22:00:01 |
raitobezarius | let Some(Prompter::Build(choices)) = editor.helper_mut() else {
unreachable!();
};
| 22:00:03 |
raitobezarius | means? | 22:00:04 |
raitobezarius | * mean? | 22:00:07 |
raitobezarius | like choice is already an index right? | 22:00:48 |
raitobezarius | I just need to reuse my structure? | 22:00:52 |
raitobezarius | or is this because of consumption? | 22:00:57 |
figsoda | In reply to @raitobezarius:matrix.org
let Some(Prompter::Build(choices)) = editor.helper_mut() else {
unreachable!();
};
2 lines above set_helper takes ownership of choices, this is taking it back | 22:01:34 |
raitobezarius | okay you're consuming it back | 22:01:47 |
raitobezarius | I won't do it this way | 22:02:01 |
raitobezarius | It's a bit ugly | 22:02:04 |
figsoda | yeah | 22:02:09 |
raitobezarius | I will clone the choices to map them into String | 22:02:11 |
raitobezarius | And I will reuse the PathBuf list to pass them to src_dir | 22:02:20 |
raitobezarius | to avoid reconverting back to PathBuf | 22:02:24 |
raitobezarius | now I only need to propagate sourceRoot attr to the drv | 22:02:43 |
raitobezarius | I just stumbled on the write phase :D | 22:04:39 |
figsoda | the whole code generation is a giant blob of rust code mixed with nix code :x | 22:05:48 |
raitobezarius | I don't even know how to filter out sourceRoot = "source/"; | 22:05:58 |
raitobezarius | In reply to @figsoda:matrix.org the whole code generation is a giant blob of rust code mixed with nix code :x rnix when | 22:06:05 |