!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

835 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.179 Servers

Load older messages


SenderMessageTime
17 Aug 2025
@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
@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

Show newer messages


Back to Room ListRoom Version: 6