[Nix-dev] nix-build -A <pkgs> builds everything
Eelco Dolstra
eelco.dolstra at logicblox.com
Thu Nov 19 15:50:52 CET 2015
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/
More information about the nix-dev
mailing list