[Nix-dev] NIXPKGS environment variable in nixos-rebuild

Eelco Dolstra e.dolstra at tudelft.nl
Wed Dec 8 13:53:14 CET 2010


On 12/07/2010 06:11 PM, Lluís Batlle i Rossell wrote:

> nix-env (the other nixpkgs user) uses ~/.nix-defexpr only, so I don't think
> there is any use of NIXPKGS_ALL anywhere nowadays.

Not so, I use it all the time for building stuff outside the Nixpkgs tree.  For
instance, for building LaTeX documents:

rec {
  pkgs = import (builtins.getEnv "NIXPKGS_ALL") {};

  doc = pkgs.texFunctions.runLaTeX {
    rootFile = ./doc.ltx;
    packages = [ pkgs.pg f];
  };
}

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list