[Nix-dev] Building separate nixos/nixpkgs in the same nix build
Rickard Nilsson
rickard.nilsson at telia.com
Mon Jan 28 16:23:50 CET 2013
Den 2013-01-25 09:39:46 skrev Rickard Nilsson <rickard.nilsson at telia.com>:
> Den 2013-01-24 19:00:16 skrev Eelco Dolstra
> <eelco.dolstra at logicblox.com>:
>
>> Hi,
>>
>> On 24/01/13 18:19, Rickard Nilsson wrote:
>>
>>> I've looked at Charon, but it seems all configurations and machines
>>> must
>>> use the same nixos and nixpkgs there?
>>
>> As far as I can see the only problem is the <nixpkgs> references in
>> nixos/lib/eval-config.nix, which could easily be replaced by a function
>> argument
>> like "nixpkgs ? <nixpkgs>".
>
> Yes, that might actually be the only thing required. I will mess around
> with that and see what I can achieve.
Eelco's suggestion works quite nicely, I can do exactly what I wanted if
the nixpkgs path is parameterised. I created a pull request for this:
https://github.com/NixOS/nixos/pull/77
It should not affect anyone not using it, since it will default to the
old '<nixpkgs>' if nothing else is specified.
/ Rickard
More information about the nix-dev
mailing list