!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

883 Members
180 Servers

Load older messages


SenderMessageTime
6 Mar 2025
@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
@elikoga:matrix.orgelikoga Are you familiar with any functional programming techniques or patterns or functions? 00:30:05
@solomon:cofree.coffeesolomonlol yes00:30:14
@solomon:cofree.coffeesolomoni work professionally as haskell dev00:30:22
@solomon:cofree.coffeesolomon * i work professionally as a haskell dev00:30:29
@solomon:cofree.coffeesolomon else if val ? recurseForDerivations && val.recurseForDerivations == true then 00:30:54
@solomon:cofree.coffeesolomon recurseForDerivations is a free variable 00:31:02
@solomon:cofree.coffeesolomon 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:cofree.coffeesolomonor maybe i'm misunderstanding that whole statement idk00:32:19
@elikoga:matrix.orgelikogaScreenshot_20250306_013212_Firefox.png
Download Screenshot_20250306_013212_Firefox.png
00:32:25
@solomon:cofree.coffeesolomonnix lang is bonkers00:32:25
@elikoga:matrix.orgelikogaI mean it's right there00:32:30
@elikoga:matrix.orgelikogaIn the manual00:32:34
@elikoga:matrix.orgelikogaSearch nix manual00:32:41
@elikoga:matrix.orgelikogaAlso what does this have to do with flakes00:33:20
@solomon:cofree.coffeesolomonit doensn't00:33:41
@elikoga:matrix.orgelikoga flake-utils is a very pretty library but the function itself is not primarily related 00:33:54
@solomon:cofree.coffeesolomonyou showed me this code as a possible solution to a flake isuse00:33:58
@elikoga:matrix.orgelikoga Though good question on the nix build command, since I have not found documentation for the shorthand flake attribute selector 00:34:27
@solomon:cofree.coffeesolomonin any case, it didnt fix my problem00:35:04
@solomon:cofree.coffeesolomonthose nested packages still arent showing up00:35:21
@elikoga:matrix.orgelikoga Not in the root? 00:36:20
@elikoga:matrix.orgelikogaSince the tree is supposed to be flattened00:36:32

Show newer messages


Back to Room ListRoom Version: 6