Nix Flakes | 889 Members | |
| 180 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Mar 2025 | ||
| If you were able you would be able to smuggle information into the evaluation process | 11:07:43 | |
| Why do you want to access that string? | 11:08:07 | |
In reply to @elikoga:matrix.org i need the path to something in the working tree, to pass to a util i'm running in a shell i could use the working directory, but then it will fail if you cd into the wrong sub-dir | 11:54:07 | |
I use git rev-parse --show-toplevel in a shellHook in the dev shell and if you run it from outside the repo that's on you | 11:55:42 | |
| ah yes, that sounds perfect | 11:56:48 | |
| 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 | |