[Nix-dev] Question RE adding a package to nixpkgs

laverne lists-laverne at schrock.email
Mon Dec 26 20:06:45 CET 2016


---- On Mon, 26 Dec 2016 11:22:19 -0600 Bjørn Forsman  wrote ---- 
>On Dec 26, 2016 16:16, "laverne" <lists-laverne at schrock.email> wrote:
> >
> > Hi,
> >
> > The steps for adding a package to nixpkgs and testing it (pulled from here: http://nixos.org/nixpkgs/manual/#chap-quick-start) are:
> >
> > 1. Clone nixpkgs
> > 2. Make your changes
> > 3. Run nix-build -A foo from the root of the cloned repository
> >
> > My question is about step 3. Will the inputs for foo come from the nixpkgs that my currently running system is running on, or will they come from the nixpkgs that I have checked out?
> The latter (your nixpkgs clone).
> -Bj&oslash;rn 
> 

Awesome. That matches my intuition. 




More information about the nix-dev mailing list