[Nix-dev] Use manual kernel configuration with NixOS

Eelco Dolstra eelco.dolstra at logicblox.com
Wed Aug 14 01:40:17 CEST 2013


Hi,

On 13/08/13 23:10, Aristid Breitkreuz wrote:

> I was trying to use nix-build --run-env to get an environment where I could
> generate a kernel configuration which I could then pass to the manual
> configuration stuff in nixpkgs. However, I stumbled upon it not finding curses,
> and with a little bit of effort I could not get it to work.
> 
> So my question is, those of you who use this feature, how do you actually invoke
> make nconfig or equivalent?

Add ncurses to the buildInputs of the kernel, then in the Nix shell do:

$ NIX_CFLAGS_LINK+=" -lncurses" make menuconfig

Passing -lncurses explicitly shouldn't be necessary, but for some reason the -l
flags in the Makefile are lost.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list