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

Luca Bruno lethalman88 at gmail.com
Wed Mar 18 11:31:02 CET 2015


On 18/03/2015 11:26, Thomas Hunger wrote:
> Hi,
>
> I usually include a shell.nix file in my libraries for development. If
> I have a dependency not in core nixpkgs then I add a local
> mkDerivation using "let pkg = ... in {}" to shell.nix (e.g. [1]).
>
> If I now want to use my library in another context, say nixops, I have
> to duplicate the shell.nix content because I cannot import from a
> project I'm depending on.
>
> I considered having a separate repository of nix expressions that is
> used for shell.nix as well as nixops but that makes it hard to release
> a standalone libraries on github.
Then make nixops import stuff from your shell.nix ?


More information about the nix-dev mailing list