!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

866 Members
For people hacking on the Nix package manager itself187 Servers

Load older messages


SenderMessageTime
17 Aug 2025
@emilazy:matrix.orgemily Nix should include the relevant flags in its own .pc 21:11:34
@emilazy:matrix.orgemilyfor the headers21:11:39
@emilazy:matrix.orgemilysince it depends on them21:11:41
@fzakaria:one.ems.hostfzakariaand ship the headers?21:11:48
@emilazy:matrix.orgemilyno21:11:55
@emilazy:matrix.orgemilythose would stay in the Boost package21:12:06
@fzakaria:one.ems.hostfzakariaI filed https://github.com/NixOS/nix/issues/1378221:14:51
@fzakaria:one.ems.hostfzakariamy pkg-config knowledge is meh; so please augment it with anything that makes sense.21:28:26
@emilazy:matrix.orgemilyseems correct to me21:35:23
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Welp boost doesn't ship pkg-config and never will21:36:58
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Not sure that is a good idea in general. Boost is a mess, no doubt there's a 1000 ways this could blow up if we try to be clever and add boost's include paths to the public flags21:38:55
@emilazy:matrix.orgemily it's expected by pkg-config that things required for header dependencies are included in the public flags though, no? 21:39:27
@emilazy:matrix.orgemily the alternative is that the Nix libraries should at least propagatedBuildInputs it I suppose 21:39:41
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)It does21:39:45
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)(Propagate the build inputs that is)21:39:59
@fzakaria:one.ems.hostfzakariaNot sure why it doesn't find it though maybe the hook for pkg-config doesn't work on propagatedBuildInputs21:40:35
@fzakaria:one.ems.hostfzakariaI put a full reproducer21:40:38
@fzakaria:one.ems.hostfzakariaso everyone who uses boost in a C++ project; has a broken pkg-config setup by default? (irrespective of Nix)21:41:06
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yes. It's best consumed via CMake, though it's weird21:42:41
@emilazy:matrix.orgemily oh, probably the issue is that you're depending on nix. 21:45:27
@emilazy:matrix.orgemilyrather than the correct component package.21:45:31
@emilazy:matrix.orgemilybecause of the split build.21:45:33
@emilazy:matrix.orgemilyI guess it's a bug in the combined package.21:45:42
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yeah, that stuff is going away soon either way21:50:07
18 Aug 2025
@fzakaria:one.ems.hostfzakaria

Here is another "oddity" of the separate SOs.
I want to just pull in nix-store but it complains:

The program must call nix::initNix()

That only exists in nix-main :(

03:33:09
@fzakaria:one.ems.hostfzakaria I think you can do initLibStore so the message is just wrong 03:34:03
@artturin:matrix.orgArtturin
In reply to @xokdvium:matrix.org
Welp boost doesn't ship pkg-config and never will
In nixpkgs it does https://github.com/NixOS/nixpkgs/pull/315998/commits/4dc3f5aa9bd08d1b5c5c518b4cd168083a668f81
😄
10:59:14
@artturin:matrix.orgArtturinAnd the reason can be seen in the pr message10:59:57
@artturin:matrix.orgArtturin
In reply to @emilazy:matrix.org
for some reason
I added it because of your issue https://github.com/NixOS/nixpkgs/issues/86131
11:03:24
@artturin:matrix.orgArtturin* Funnily enough, I added it because of your issue https://github.com/NixOS/nixpkgs/issues/8613111:05:04

Show newer messages


Back to Room ListRoom Version: 6