| 6 Mar 2025 |
elikoga | Okay I will use rFD as shorthand since I'm on my phone | 00:27:17 |
solomon | sure, thank you | 00:27:25 |
solomon | like do you literally just bind it in the attrset you pass into flattenTree? | 00:28:00 |
elikoga | In reply to @solomon:cofree.coffee like do you literally just bind it in the attrset you pass into flattenTree? Yes | 00:28:16 |
solomon | packages = flake-utils.lib.flattenTree {
recurseForDerivations = true;
...
| 00:28:19 |
solomon | okay looking at the source i would have no idea | 00:28:49 |
solomon | the input to hte function is called tree | 00:28:58 |
solomon | and there is no obvious place where recurseForDerivations is bound | 00:29:16 |
elikoga | Are you familiar with any functional programming techniques or patterns or functions? | 00:30:05 |
solomon | lol yes | 00:30:14 |
solomon | i work professionally as haskell dev | 00:30:22 |
solomon | * i work professionally as a haskell dev | 00:30:29 |
solomon | else if val ? recurseForDerivations && val.recurseForDerivations == true then | 00:30:54 |
solomon | recurseForDerivations is a free variable | 00:31:02 |
solomon | i now see that val.recurseForDerivations is bound via that recurse function, but that doesnt' explain how recurseForDerivations got in scope | 00:31:35 |
solomon | or maybe i'm misunderstanding that whole statement idk | 00:32:19 |
elikoga |  Download Screenshot_20250306_013212_Firefox.png | 00:32:25 |
solomon | nix lang is bonkers | 00:32:25 |
elikoga | I mean it's right there | 00:32:30 |
elikoga | In the manual | 00:32:34 |
elikoga | Search nix manual | 00:32:41 |
elikoga | Also what does this have to do with flakes | 00:33:20 |
solomon | it doensn't | 00:33:41 |
elikoga | flake-utils is a very pretty library but the function itself is not primarily related | 00:33:54 |
solomon | you showed me this code as a possible solution to a flake isuse | 00:33:58 |
elikoga | Though good question on the nix build command, since I have not found documentation for the shorthand flake attribute selector | 00:34:27 |
solomon | in any case, it didnt fix my problem | 00:35:04 |
solomon | those nested packages still arent showing up | 00:35:21 |
elikoga | Not in the root? | 00:36:20 |
elikoga | Since the tree is supposed to be flattened | 00:36:32 |