!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

848 Members
For people hacking on the Nix package manager itself183 Servers

Load older messages


SenderMessageTime
17 Aug 2025
@connorbaker:matrix.orgconnor (he/him) (UTC-7) It's my understanding that all of them should be garbage, because the only value retained from the instantiation is forced with deepSeq and should hold no references to that instantiation of Nixpkgs (though I suppose since it's a string with context it could hold references that way?). Put another way, is it possible there are still live references to those instances of Nixpkgs, or something about their instantiation is keeping them around? 05:21:43
@emilazy:matrix.orgemily hmm. maybe you are right. well, I don't think deepSeq is doing anything there since strings are atomic afaik 05:22:31
@emilazy:matrix.orgemilyso each thunk will keep around a reference until it is forced at least05:22:52
@emilazy:matrix.orgemilybut then the instantiation is in the thunk so… eh05:23:02
@roberthensing:matrix.orgRobert Hensing (roberth) deepSeq is not sufficient to drop all closures, as functions (lambdas) are normal form, but also have closures, much like thunks. You'd have to drop all functions (if any exist in your result, idk) 18:54:59
@emilazy:matrix.orgemily .drvPath shouldn't contain any functions I hope 18:55:58
@fzakaria:one.ems.hostfzakariaIt won't even run it though; using CLIon's gtest runner -- do you have it working?20:22:30
@fzakaria:one.ems.hostfzakariaI was looking today at https://github.com/jart/json.cpp -- vs nlohman20:23:42
@emilazy:matrix.orgemily the JSON library is extremely load-bearing for evaluation semantics, please don't switch it out without a very thorough test suite and fuzzing; the switch to nlohmann_json in 2.4 already produced a lot of eval changes 20:30:05
@fzakaria:one.ems.hostfzakariaJust sharing it; I sponsor jart via GitHub (I wish a larger amount) so I try to follow up on the work she does. -- I really like all the work she does + I find her code outstanding.20:32:43
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Also let's first handle the TOML fiasco20:40:26
@emilazy:matrix.orgemilyI did my best :D20:41:03
@fzakaria:one.ems.hostfzakariawas that solvable ? I thought it's just not because of the spec20:41:06
@emilazy:matrix.orgemilyit was solved by fixing the TOML spec violation in Nixpkgs20:41:30
@emilazy:matrix.orgemily(that 2.3 already barfed on, and that was present when 2.3 was still minver, so it was just unambiguously a bug)20:41:45
@fzakaria:one.ems.hostfzakariais boost supposed to be a pkg-config?21:05:38
@fzakaria:one.ems.hostfzakaria

i'm surprised i am missing it when trying to use Nix as a library

ix/store/dxar61b2ig87cfdvsylfcnyz6ajls91v-nix-2.28.3-dev/include/nix/util/fmt.hh:4:10: fatal error: boost/format.hpp: No such file or directory
    4 | #include <boost/format.hpp>
      |          ^~~~~~~~~~~~~~~~~~

21:05:50
@fzakaria:one.ems.hostfzakariaI would have thought Nix .pc files should declare all their dependencies or something21:06:17
@fzakaria:one.ems.hostfzakaria I add boost as a buildInput and it's fixed but .. feels wrong 21:07:04
@emilazy:matrix.orgemily no, Boost does not support pkg-config 21:09:42
@emilazy:matrix.orgemily but that sounds like a bug in the Nix .pc files 21:09:55
@fzakaria:one.ems.hostfzakaria I see it when I added it boost specifically though 21:10:00
@emilazy:matrix.orgemilyof which there were quite a few last time I tried using them IIRC21:10:02
@fzakaria:one.ems.hostfzakaria
pkg-config --list-all | grep boost
boost                  boost - Pkg-config file for boost

21:10:07
@emilazy:matrix.orgemilyyeah Nixpkgs patches one in21:10:17
@emilazy:matrix.orgemilyfor some reason21:10:19
@emilazy:matrix.orgemilyprobably we should not21:10:21
@fzakaria:one.ems.hostfzakariawhat's the answer then for pkg-config if you do depend in boost ?21:11:02
@emilazy:matrix.orgemily Nix should include the relevant flags in its own .pc 21:11:34
@emilazy:matrix.orgemilyfor the headers21:11:39

Show newer messages


Back to Room ListRoom Version: 6