[Nix-dev] Question about organising dependencies not in core nixpkgs?

Luca Bruno lethalman88 at gmail.com
Wed Mar 18 12:53:21 CET 2015


On 18/03/2015 12:37, Thomas Hunger wrote:
> Thanks.
>
> That would require having the shell.nix library locally already
> AFAICT. To rephrase slightly. Ideally I'd like to be able to do:
>
> myLibrary = fetchurl { ... };
> extraDepends = import "${myLibrary}/depends.nix";
> buildDepends = [ ... ] ++ extraDepends;
>
> Does that make sense?
I understand that, but I think the best fit of nix usage is having all
the nix expressions in the same repository, instead of spreading nix
files on every repository. That is, what's nixpkgs is doing.

So I would create a repo of all nix files, which fetch sources from your
other repos.


More information about the nix-dev mailing list