!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

896 Members
182 Servers

Load older messages


SenderMessageTime
6 Mar 2025
@solomon:cofree.coffeesolomon and i'm using flake-utils.lib.eachDefaultSystem 00:20:22
@solomon:cofree.coffeesolomon * and i'm using flake-utils.lib.eachDefaultSystem to set the architecture 00:20:56
@elikoga:matrix.orgelikogaAh, 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 them00:21:12
@solomon:cofree.coffeesolomoni did that and those nested packages dont show up at all00:21:26
@elikoga:matrix.orgelikoga I suggest reading library source code if you are not familiar with the behavior of a library 00:21:44
@elikoga:matrix.orgelikogaScreenshot_20250306_012226_Firefox.png
Download Screenshot_20250306_012226_Firefox.png
00:22:40
@elikoga:matrix.orgelikoga Have you tried setting recurseForDerivations? 00:22:56
@elikoga:matrix.orgelikogahttps://github.com/numtide/flake-utils/blob/11707dc2f618dd54ca8739b309ec4fc024de578b/flattenTree.nix#L1800:23:09
@solomon:cofree.coffeesolomoni've never heard of that00:23:11
@elikoga:matrix.orgelikoga I don't know it's right there on my screen 00:23:22
@solomon:cofree.coffeesolomonuh where do i set it?00:23:54
@elikoga:matrix.orgelikogaWhere you want to recurse for derivations00:24:13
@solomon:cofree.coffeesolomoni dont understand where it is bound in the code00:24:44
@solomon:cofree.coffeesolomonit looks like a free variable00:25:02
@elikoga:matrix.orgelikoga Can you try placing it where it would seem useful? 00:25:25
@solomon:cofree.coffeesolomonwtf00:25:31
@solomon:cofree.coffeesolomon were looking at a pure functon that references a variable recurseForDerivations without binding it 00:26:03
@solomon:cofree.coffeesolomoni have no idea what to set it00:26:07
@solomon:cofree.coffeesolomon * i have no idea where to set it00:26:20
@elikoga:matrix.orgelikogaI believe that placing it in the root as well as sub attrs up until the value you want to expose should work00:26:23
@solomon:cofree.coffeesolomoni dont understand what that means00:26:35
@solomon:cofree.coffeesolomoncan you give an example?00:26:53
@elikoga:matrix.orgelikogaOkay I will use rFD as shorthand since I'm on my phone00:27:17
@solomon:cofree.coffeesolomonsure, thank you00:27:25
@solomon:cofree.coffeesolomon like do you literally just bind it in the attrset you pass into flattenTree? 00:28:00
@elikoga:matrix.orgelikoga
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:cofree.coffeesolomon
        packages = flake-utils.lib.flattenTree {
          recurseForDerivations = true;
          ...
00:28:19
@solomon:cofree.coffeesolomonokay looking at the source i would have no idea00:28:49
@solomon:cofree.coffeesolomon the input to hte function is called tree 00:28:58
@solomon:cofree.coffeesolomon and there is no obvious place where recurseForDerivations is bound 00:29:16

Show newer messages


Back to Room ListRoom Version: 6