Nix Flakes | 859 Members | |
| 177 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Mar 2025 | ||
| i'm also using direnv, so you cant run it from outside the repo | 11:57:19 | |
| the shell would unload all of those utils | 11:57:24 | |
| 12:01:32 | |
| now that just leaves this puzzle, it was working earlier | 12:01:40 | |
I do not know inherit (flake) I've never met this man in my life | 12:02:34 | |
| Also self is in inputs | 12:02:49 | |
| 12:03:14 | |
| i think i just want flake.outputs | 12:03:55 | |
| I think you have access from the inside | 12:04:04 | |
| From the outside you can just toString getFlake to get the path I think | 12:04:25 | |
| in this case, i want one of the outputs on the flake | 12:04:41 | |
x.outputs.packages.x86_64-linux.netinstall_image so yeah, i just want outputs | 12:05:00 | |
| 2 Mar 2025 | ||
| 22:58:16 | ||
| 3 Mar 2025 | ||
| 04:43:17 | ||
| 10:24:09 | ||
| 6 Mar 2025 | ||
| 00:12:18 | ||
| Hi. is there any way to have nested package outputs like this?
| 00:15:10 | |
so that you can do something like nix build '.#bar.baz' | 00:15:28 | |
I thought flake-utils' flattenTree would do this but it doesnt seem to | 00:18:23 | |
* I thought flake-utils' flattenTree would allow this but it doesnt seem to | 00:18:30 | |
| I think you can place them in the root of the flake outputs | 00:19:01 | |
| what do you mean? | 00:19:16 | |
| Right now you're trying to use shorthand package selection syntax but it probably fails due to there not being an architecture | 00:19:27 | |
| sorry let me give a real example:
| 00:19:52 | |
| * sorry let me give a real example:
| 00:20:02 | |
and i'm using flake-utils.lib.eachDefaultSystem | 00:20:22 | |
* and i'm using flake-utils.lib.eachDefaultSystem to set the architecture | 00:20:56 | |
| Ah, yes, I'm not familiar with flattenTree but you can try using tab completion in the cli or nix repl to find out the ultimate path of your packages. And then use them | 00:21:12 | |
| i did that and those nested packages dont show up at all | 00:21:26 | |
| I suggest reading library source code if you are not familiar with the behavior of a library | 00:21:44 | |