| 6 Mar 2025 |
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 |
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 |