[Nix-dev] Create own channel how-to

Eelco Dolstra eelco.dolstra at logicblox.com
Fri Nov 30 16:03:06 CET 2012


On 30/11/12 15:31, Alexey Shrub wrote:

> I like nix package managment concept and want to use nix for deploying internal
> software in company where I work.
> I can not find any documentation about how to create my own channel, is it exists?

See the man page for nix-push.  In short:

$ nix-push --dest /tmp/my-channel --bzip2 --manifest \
    --url-prefix http://my-server/my-channel \
    $(nix-build my-expr.nix -A my_package1 -A my_package2 ...)

and then serve /tmp/my-channel as http://my-server/my-channel.  Note that this
assumes Nix 1.2pre as the syntax of nix-push changed a bit.

Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/

More information about the nix-dev mailing list