Why is clickhouse runtime closure dependent on clang-wrapper and lld?

Hey :wave:

I’m just curious, why is “title” happening? Looking into the source of the package I don’t see any direct reference of these packages. Sure, cmake and lld must be used during the build process, but why is they leaking into runtime closure?
I noticed that during nix-shell instantiation:

$ nix-shell -p clickhouse
these 10 paths will be fetched (244.44 MiB download, 1693.54 MiB unpacked):
  /nix/store/b0cwb2x7pps3mz8q3g48lmwwk757j3z9-binutils-wrapper-2.42
  /nix/store/jwrh8qfa20l682l6jjvk57k6l1f3hkrm-clang-16.0.6
  /nix/store/zz0jgar66fghklkx7d05hb2z28p24iad-clang-16.0.6-lib
  /nix/store/xh4dhcpcan8lgzi0i4y7hzjzhcvbpcbz-clang-wrapper-16.0.6
  /nix/store/6l1qf2x0hczh4pyljz475q78jkl6hsd2-clickhouse-24.3.5.46
  /nix/store/c6na5xbs9gpd9ckpn0nivlrv8nvr5bp6-compiler-rt-libc-16.0.6
  /nix/store/2sibwgqarbzwav4gzf12capj4aj7kyn4-compiler-rt-libc-16.0.6-dev
  /nix/store/yl0n7lqvxdaax2g1a2igbs4w0icxqbby-expand-response-params
  /nix/store/572747psyaci1kj4xqiswvxa8k98l8kx-lld-16.0.6
  /nix/store/54cprc12q3b5f5a9wrjard4z8pvdqn0h-lld-16.0.6-lib
copying path '/nix/store/54cprc12q3b5f5a9wrjard4z8pvdqn0h-lld-16.0.6-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/zz0jgar66fghklkx7d05hb2z28p24iad-clang-16.0.6-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/c6na5xbs9gpd9ckpn0nivlrv8nvr5bp6-compiler-rt-libc-16.0.6' from 'https://cache.nixos.org'...
copying path '/nix/store/yl0n7lqvxdaax2g1a2igbs4w0icxqbby-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/b0cwb2x7pps3mz8q3g48lmwwk757j3z9-binutils-wrapper-2.42' from 'https://cache.nixos.org'...
copying path '/nix/store/572747psyaci1kj4xqiswvxa8k98l8kx-lld-16.0.6' from 'https://cache.nixos.org'...
copying path '/nix/store/2sibwgqarbzwav4gzf12capj4aj7kyn4-compiler-rt-libc-16.0.6-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/jwrh8qfa20l682l6jjvk57k6l1f3hkrm-clang-16.0.6' from 'https://cache.nixos.org'...
copying path '/nix/store/xh4dhcpcan8lgzi0i4y7hzjzhcvbpcbz-clang-wrapper-16.0.6' from 'https://cache.nixos.org'...
copying path '/nix/store/6l1qf2x0hczh4pyljz475q78jkl6hsd2-clickhouse-24.3.5.46' from 'https://cache.nixos.org'...

And later I confirmed that dependency with nix-tree /nix/store/6l1qf2x0hczh4pyljz475q78jkl6hsd2-clickhouse-24.3.5.46 .

I’ll appreciate any clues on how to resolve this little mystery :slight_smile:
Thanks.