Claudio Bley
Claudio Bley
> This seems like a reasonable alternative to me, thoughts? Yes, maybe it's a good idea to take a step back. The problem resolved by https://github.com/facebook/buck2/commit/37f3d258887d0c4565a23eafb2520057d923c6ac was described like this:...
I think that should actually not be too complicated. You could create a repository rule which reads the lock file (it's just JSON) and extracts the `resolved` value (which looks...
> Adding back the linker flags `--undefined dynamic_lookup` did not fix the missing Foundation framework at link time. I think that issue occurs when using an automatically configured local cc...
> So a better fix would be to add the nixpkgs cc toolchain to that WORKSPACE, correct? Yes. :crossed_fingers:
> To see why this extension failed to compile, please check the mkmf.log which can be found here: > > /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-21/2.6.0/clocale-0.0.4/mkmf.log What does it say?
The curl package has several outputs, the curl binary is in the `bin` output. You should be able to use `curl.bin` as attribute.
I just discovered that when you use `nix build --out-link curl_pkg 'nixpkgs#curl.bin'` the out link created is not called `curl_pkg`: ```console $ ls -lh curl_pkg-bin lrwxrwxrwx 1 claudio users 58...
Hi @jonathanlking, I can reproduce the issue inside of the nix dev shell. This seems to be a problem with ghc using the glibc from nix: ```console # gdb /root/.cache/bazel/_bazel_root/35a3e53a80b7147c6d4c8f9a2593f914/external/rules_haskell_ghc_linux_amd64/lib/bin/ghc...
> I think this might be a case of "user error", rather than an issue with rules_haskell, so maybe it's fine to close? Yes, I think there is not much...
Thank you @sluongng, that is useful! Since I am using NixOS, I went ahead and added a Docker nix image to the flake, on top of your changes: https://github.com/sluongng/buck2/compare/sluongng/buck2-bootstrap-re...avdv:buck2:cb/buck2-bootstrap-re-nix To...