Hi,

On 19/11/15 11:46, Guillaume Maudoux (Layus) wrote:

> To get binary support, you should develop on a branch based on the same
> commit as you current channel.
> See
> https://nixos.org/wiki/Create_and_debug_nix_packages#Tracking_upstream_changes_and_avoiding_extra_rebuilding
> for extra details and  step-by-step commands.

There is an easier way than described on the wiki, namely by using the
nixpkgs-channels repository, which contains branches corresponding to the
current channel contents.

For instance, to create a branch named "local" based on the latest
nixos-unstable channel:

$ git remote add channels git://github.com/NixOS/nixpkgs-channels.git
$ git remote update channels
$ git checkout -b local channels/nixos-unstable

and to update it:

$ git remote update channels
$ git merge channels/nixos-unstable # or "git rebase"

See http://nixos.org/nixos/manual/index.html#sec-getting-sources for more info.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to