17 Aug 2025 |
fzakaria | I was looking today at https://github.com/jart/json.cpp -- vs nlohman | 20:23:42 |
emily | 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 | Just 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 |
Sergei Zimmerman (xokdvium) | Also let's first handle the TOML fiasco | 20:40:26 |
emily | I did my best :D | 20:41:03 |
fzakaria | was that solvable ? I thought it's just not because of the spec | 20:41:06 |
emily | it was solved by fixing the TOML spec violation in Nixpkgs | 20:41:30 |
emily | (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 | is boost supposed to be a pkg-config? | 21:05:38 |
fzakaria | 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 | I would have thought Nix .pc files should declare all their dependencies or something | 21:06:17 |
fzakaria | I add boost as a buildInput and it's fixed but .. feels wrong | 21:07:04 |
emily | no, Boost does not support pkg-config | 21:09:42 |
emily | but that sounds like a bug in the Nix .pc files | 21:09:55 |
fzakaria | I see it when I added it boost specifically though | 21:10:00 |
emily | of which there were quite a few last time I tried using them IIRC | 21:10:02 |
fzakaria | pkg-config --list-all | grep boost
boost boost - Pkg-config file for boost
| 21:10:07 |
emily | yeah Nixpkgs patches one in | 21:10:17 |
emily | for some reason | 21:10:19 |
emily | probably we should not | 21:10:21 |
fzakaria | what's the answer then for pkg-config if you do depend in boost ? | 21:11:02 |
emily | Nix should include the relevant flags in its own .pc | 21:11:34 |
emily | for the headers | 21:11:39 |
emily | since it depends on them | 21:11:41 |
fzakaria | and ship the headers? | 21:11:48 |
emily | no | 21:11:55 |
emily | those would stay in the Boost package | 21:12:06 |
fzakaria | I filed https://github.com/NixOS/nix/issues/13782 | 21:14:51 |
fzakaria | my pkg-config knowledge is meh; so please augment it with anything that makes sense. | 21:28:26 |
emily | seems correct to me | 21:35:23 |