[Nix-dev] PLease help to grok the code

Sergey Mironov ierton at gmail.com
Wed Jan 4 22:51:24 CET 2012


top-level/all-packages.nix:32
(https://nixos.org/websvn/nix/nixpkgs/trunk/pkgs/top-level/all-packages.nix)

defines 'config' parameter. Where does it come from when I type
'nixos-rebuild switch'? NIXPKGS_CONFIG is set to /nix/etc/config.nix but
there is no such file! I am screwed up.. How should I change
those getConfig X Y behaviour in , eg.

  emacs22 = callPackage ../applications/editors/emacs-22 {
    stdenv = overrideGCC stdenv gcc44;
    xaw3dSupport = getConfig [ "emacs" "xaw3dSupport" ] false;
    gtkGUI = getConfig [ "emacs" "gtkSupport" ] true;
  };

??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120105/b0455589/attachment.html 


More information about the nix-dev mailing list