[Nix-dev] Git branches to track nix channels
Nicolas Pierron
nicolas.b.pierron at gmail.com
Wed May 20 22:23:12 CEST 2015
Hi,
I did that a while ago, and somebody removed them, because of the
potential noise that such branches can caused.
Then I pushed the script that I made to keep track of the channel versions.
You can use this script in your nixpkgs working directory, run
$ $(git rev-parse --show-cdup)maintainers/scripts/update-channel-branches.sh
Then you can make an alias in your .git/config:
[alias]
fetch-channels = !sh -c \"$(git rev-parse
--show-cdup)maintainers/scripts/update-channel-branches.sh\"
which means that you can also do, from anywhere inside your working directory.
$ git fetch-channels
This will pull all the channel branches from nixos.org, and also look
for the channels that are corresponding to nixos-version, and any
channel that you have in ~/.nix-defexpr .
On Tue, May 19, 2015 at 9:56 AM, Florian Friesdorf <flo at chaoflow.net> wrote:
>
> Hi,
>
> nix channels are series of snapshots of nixpkgs that were succesfully
> build by hydra and we subscribe and update them via nix-channel - for
> users of nixpkgs this is great!
>
> As maintainers of nixpkgs and users who keep custom patches, we also
> have one or more local checkouts of git://github.com/NixOS/nixpkgs.git.
>
> It would be great if channel information would be available via git as
> well:
>
> - one branch per channel, git reset --hard to the latest successfully
> build nixpkgs in this channel
>
> - tags (<channel-name>-<datetime>) for each successful channel build.
>
> This would enable us to base local customizations of nixpkgs on-top of
> successful hydra builds and therefore getting as much binary package
> support as possible, and would remove the need to additionally maintain
> channels with nix-channel.
>
> What do you think?
>
> cheers
> florian
> --
> Florian Friesdorf <flo at chaoflow.net>
> GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
--
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
More information about the nix-dev
mailing list