Is it possible to create a channel that complements the nixpkgs channel?
I'd like to publish some tools at work in a way that's easy to consume for my co-workers. Maybe this doesn't even make sense, I mean I'm basing this on my experience with other distros where it's easy to put packages in a repo (I've done that for Debian, ArchLinux and others).
Yes, you can do this, although I don't remember exactly what the mechanism was. You can also just clone a repository of Nix expressions and install derivations from it directly though
did you go through with this? I use channels to install from repos, works with any nix expression.
Simply run nix-channel --add https://github.com/cachix/ghcide-nix/tarball/master/master.tar.gz ghcide and you can install with nix-env -f '<ghcide>' ghcide-ghc865
Is it possible to create a channel that complements the
nixpkgs
channel?I'd like to publish some tools at work in a way that's easy to consume for my co-workers. Maybe this doesn't even make sense, I mean I'm basing this on my experience with other distros where it's easy to put packages in a repo (I've done that for Debian, ArchLinux and others).
Yes, you can do this, although I don't remember exactly what the mechanism was. You can also just clone a repository of Nix expressions and install derivations from it directly though
Yes, but for sharing with co-workers I think it'd be nicer to tell them to
nix-env -i work-tool
and then to keep updated just use the standard
nix-channel --update
nix-env --upgrade
Do they use NixOS?
No, they don't (and neither do I).
did you go through with this? I use channels to install from repos, works with any nix expression.
Simply run
nix-channel --add https://github.com/cachix/ghcide-nix/tarball/master/master.tar.gz ghcide
and you can install withnix-env -f '<ghcide>' ghcide-ghc865
Yes, @Torsten Schmits I did get it working exactly the way I mentioned above.