[Nix-dev] Re: [Nix-commits] SVN commit: nix - 15377 - sandervanderburg - in configurations/trunk/misc: . sander.van.der.burg

Nicolas Pierron nicolas.b.pierron at gmail.com
Tue Apr 28 22:30:28 CEST 2009


Hi Sander,

On Tue, Apr 28, 2009 at 16:05, Sander van der Burg
<S.vanderBurg at tudelft.nl> wrote:
> Added: configurations/trunk/misc/sander.van.der.burg/dutipm.nix
> ===================================================================
> --- configurations/trunk/misc/sander.van.der.burg/dutipm.nix                            (rev 0)
> +++ configurations/trunk/misc/sander.van.der.burg/dutipm.nix    2009-04-28 14:05:52 UTC (rev 15377)
> @@ -0,0 +1,52 @@
> +let
> +  pkgs = import (builtins.getEnv "NIXPKGS_ALL") {};
> +  kernelPackages = pkgs.kernelPackages_2_6_28;
> +in

I'd recommend you to use the following lines instead of what I've
quoted.  The reason is that the "pkgs" attribute that you are creating
may not be the same as the one used by the other modules.  This may
cause extra work and extra package duplication/compilation.

------
{pkgs, ...}:

let
  kernelPackages = pkgs.kernelPackages_2_6_28;
in
------

Cheers,

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron
- If you are doing something twice then you should try to do it once.



More information about the nix-dev mailing list