!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

416 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

Load older messages


SenderMessageTime
26 Jul 2025
@emilazy:matrix.orgemilyI don't understand it either, but also like I said this stuff changed at some point I believe17:00:54
@piegames:flausch.socialpiegamesyeah, I figured17:01:21
@aloisw:julia0815.dealoisw
In reply to @emilazy:matrix.org
overlays = [ (final: prev: prev.dummyOverlay) ]; should
final: prev: prev.dummyOverlay final prev, but yes that works, cool trick.
17:02:21
@emilazy:matrix.orgemilythat's not the trick I mean :)17:02:33
@aloisw:julia0815.dealoiswAh you want to use an attrset as an overlay?17:03:33
@emilazy:matrix.orgemily you can do dummyPackages = { nix = pkgs.hello; } 17:03:34
@emilazy:matrix.orgemily and then (final: prev: prev.dummyPackages) should work 17:03:41
@emilazy:matrix.orgemily that's how lixPackageSets could work (but it does admittedly infrec right now) 17:04:05
@emilazy:matrix.orgemily (I guess because it's overlaying newScope, lol) 17:04:13
@aloisw:julia0815.dealoiswYeah I understand now, that's an even cooler trick.17:05:08
@emilazy:matrix.orgemily (extend (final: prev: builtins.removeAttrs prev.lixPackageSets.stable [ "callPackage" "newScope" "overrideScope" "packages" "recurseForDerivations" "stateDir" "storeDir" "confDir" "aws-sdk-cpp" "boehmgc" "editline" ])).lix does still infrec and I don't know why. 17:05:59
@emilazy:matrix.orgemily probably because the lixPackageSets themselves get messed up by the overlay and need to be written smarter for it 17:06:22
@emilazy:matrix.orgemilyor something.17:06:32
@aloisw:julia0815.dealoiswWill try to figure out once my nix-daemon is not longer almost OOMing due to linking a Gecko.17:09:21
* @raitobezarius:matrix.orgraitobezarius (DECT: 7248) sees cursed shit in the channel17:15:13
* @raitobezarius:matrix.orgraitobezarius (DECT: 7248) goes back to DNS debugging17:15:20
@piegames:flausch.socialpiegamesnooo we need you17:24:39
@aloisw:julia0815.dealoisw
In reply to @emilazy:matrix.org
(extend (final: prev: builtins.removeAttrs prev.lixPackageSets.stable [ "callPackage" "newScope" "overrideScope" "packages" "recurseForDerivations" "stateDir" "storeDir" "confDir" "aws-sdk-cpp" "boehmgc" "editline" ])).lix does still infrec and I don't know why.
I think it infrecs on the names given that even final: prev: builtins.deepSeq (builtins.attrNames prev.lixPackageSets.stable) {} does.
17:30:47
@emilazy:matrix.orgemily I'm so confused. how can a prev thing infrec? 17:32:49
@emilazy:matrix.orgemilyit's, like, already there.17:32:56
@aloisw:julia0815.dealoisw Hmm even final: prev: prev.callPackages ({ }: { }) { } infrecs. 17:33:01
@aloisw:julia0815.dealoisw Might have something to do with the fact that prev is not quite the same as the package set without the overlay. 17:33:55
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @piegames:flausch.social
nooo we need you
i feel like there's enough brains on the topic ;P
17:36:34
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) but tbh, I think the package set usage could be simply as lix.packageSet = pkgs.lixPackageSets.lix_2_93; 17:36:56
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)kernel style17:36:57
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)and then the nixos module can abstract the various overlays we want to do17:37:06
@emilazy:matrix.orgemilydo you know how it differs?17:43:05
@emilazy:matrix.orgemilyapparently I don't understand overlays17:43:08
* @piegames:flausch.socialpiegames is confused as well17:46:33
@aloisw:julia0815.dealoisw This should be the function that applies overlays: https://github.com/NixOS/nixpkgs/blob/1733b682f2b4bf9e389a757e81e09fe3b51ddbc4/lib/fixed-points.nix#L319-L328 . So basically you should think of the package set as a function (that can be altered by overlays) and prev is the package set function prior to your overlay called with the fixed point. 18:25:19

Show newer messages


Back to Room ListRoom Version: 10