Open blockjon-dd opened 2 months ago
If you look around in the directories generated by repository rules, you should be able to see the mycurl repo:
ls $(bazel info output_base)/external/mycurl
I would check if you can find the curl binary and also take a look at the BUILD file in there.
Additionally, could you provide the output of bazel query @mycurl//...
?
I can try to reproduce this on monday.
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
:
$ ls -lh curl_pkg-bin
lrwxrwxrwx 1 claudio users 58 Sep 23 08:24 curl_pkg-bin -> /nix/store/qw0m9y0pfppx0rjs4myl82i498d62k43-curl-8.7.1-bin
I think we lack proper handling for that at the moment.
Consider this
flake.nix
:For some reason when I target the file like this:
I'm unable to actually get a genrule working that uses curl. It seems like the curl command is not under bin/curl, as is the case with the other cli's like hello and cowsay.
Here's the error I'm getting:
here's a clue as to what might be wrong:
I'm not sure if this is a problem with rules_nixpkgs or if curl is just not usable by rules_nixpkgs for some reason.