!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
26 Jul 2025
@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 sees cursed shit in the channel17:15:13
* @raitobezarius:matrix.orgraitobezarius 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
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 but tbh, I think the package set usage could be simply as lix.packageSet = pkgs.lixPackageSets.lix_2_93; 17:36:56
@raitobezarius:matrix.orgraitobezariuskernel style17:36:57
@raitobezarius:matrix.orgraitobezariusand 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
@aloisw:julia0815.dealoiswActually that's not just basically but literally how it works: https://github.com/NixOS/nixpkgs/blob/2b37f8f2d88df8c2a5e67cc11ae15ff8372315af/pkgs/top-level/stage.nix#L337-L35419:16:55
@aloisw:julia0815.dealoiswThe entire nixpkgs package set is just overlays all the way down.19:17:20
@raitobezarius:matrix.orgraitobezarius emily i reworked the whole thing to take into account Darwin 21:01:40
@raitobezarius:matrix.orgraitobezarius https://gerrit.lix.systems/c/lix/+/3765 21:01:42
@raitobezarius:matrix.orgraitobezariusI'm going to have dinner and let CI see if Darwin tests works21:02:07
@raitobezarius:matrix.orgraitobezariusI confirmed that Linux functionality did not regress as I have enough build capacity for that, but Darwin is not the optimal thing for me to test21:02:24
@raitobezarius:matrix.orgraitobezariusI decided to optimize Linux for free in the context of cacert disappearing someday21:02:42
@raitobezarius:matrix.orgraitobezariusI bind the CA certificate if possible rather than copying it21:02:50
@raitobezarius:matrix.orgraitobezariusI kept the warning and ensured it appears only if caFile and $NIX_SSL_CERT_FILE disagrees21:03:06

Show newer messages


Back to Room ListRoom Version: 10