| 6 Mar 2025 |
elikoga |  Download Screenshot_20250306_012226_Firefox.png | 00:22:40 |
elikoga | Have you tried setting recurseForDerivations? | 00:22:56 |
elikoga | https://github.com/numtide/flake-utils/blob/11707dc2f618dd54ca8739b309ec4fc024de578b/flattenTree.nix#L18 | 00:23:09 |
solomon | i've never heard of that | 00:23:11 |
elikoga | I don't know it's right there on my screen | 00:23:22 |
solomon | uh where do i set it? | 00:23:54 |
elikoga | Where you want to recurse for derivations | 00:24:13 |
solomon | i dont understand where it is bound in the code | 00:24:44 |
solomon | it looks like a free variable | 00:25:02 |
elikoga | Can you try placing it where it would seem useful? | 00:25:25 |
solomon | wtf | 00:25:31 |
solomon | were looking at a pure functon that references a variable recurseForDerivations without binding it | 00:26:03 |
solomon | i have no idea what to set it | 00:26:07 |
solomon | * i have no idea where to set it | 00:26:20 |
elikoga | I believe that placing it in the root as well as sub attrs up until the value you want to expose should work | 00:26:23 |
solomon | i dont understand what that means | 00:26:35 |
solomon | can you give an example? | 00:26:53 |
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 |