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.
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