can't find curl-config on NixOS

爱⌒轻易说出口 提交于 2019-12-05 17:49:57

It's in the curl.dev output.

$ ls $(nix-build --no-out-link '<nixpkgs>' -A curl.dev)/bin
curl-config

The reason for this is to keep the closure size of anything the uses curl small. Normally NixPkgs takes care of those details when processing the buildInputs attribute, but if you're not using NixPkgs to build something you may have to do a bit more manual work.

Note that NixPkgs also has a curlFull attribute which has more features enabled, as can be seen by the number of packages in the closure of the runtime library output:

$ nix-store -q --requisites $(nix-build --no-out-link '<nixpkgs>' -A curl.out) | wc -l
6
$ nix-store -q --requisites $(nix-build --no-out-link '<nixpkgs>' -A curlFull.out) | wc -l
29
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!