[Nix-dev] Building my system with hydra

Nicolas Pierron nicolas.b.pierron at gmail.com
Tue Sep 27 21:54:33 CEST 2011


Hi Marco,

On Tue, Sep 27, 2011 at 17:37,  <maggesi at math.unifi.it> wrote:
> I would like to create a jobset that build my system with the latest
> svn nixpkgs, svn nixos & and the current configuration.nix.
>
> (BTW: I suppose that this is something that most nix "hackers" want to
> have in principle.  So it would be nice to propose a "standard" way to
> do this).

Hey ! You read my mind !
In fact I want my server to build the configuration of all my machines.

> Here is my first attempt at writing a release.nix:
>
>
> { nixpkgs ? (import ./nixpkgs { })
> , nixos ? ./nixos
> , configuration ? ./configuration.nix
> }:
>
> let
>   eval = import (nixos + "/lib/eval-config.nix") {
>     inherit nixpkgs;

nixpkgs sould be a path.  This should solve your nix-instantiate issue.

>     modules = [ configuration ];
>   };
> in
> { system = eval.config.system.build.toplevel; }


One of my common problem with hydra, is that I don't want to have lots
of copy of the git repository which hold the data or even make useless
copy of it when I am developing in the source tree.  This is a
critical problem because my latest project has around 500 MB of
sources.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/


More information about the nix-dev mailing list