can't find curl-config on NixOS

一曲冷凌霜 提交于 2019-12-07 11:56:28

问题


I'm trying to install vim-now-haskell on NixOS 17.09.

The installation fails with the exception

*** Installer requires 'curl-config'. Please install and try again.
*** Aborting...

Unfortunately Search NixOS packages doesn't list any package for curl-config. It also isn't in installed curl-7.56.1.

I can hardly believe NixOS doesn't provide curl-config. Therefore I'm looking here for help to find it.


回答1:


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


来源:https://stackoverflow.com/questions/48217193/cant-find-curl-config-on-nixos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!