[Nix-dev] Explicitly selecting sources for "src" in stdenv.mkDerivation?

zimbatm zimbatm at zimbatm.com
Thu Feb 16 20:18:26 CET 2017


I've been using filterSource. It works okay but is a bit too generic. It
would be nice to have a function that understands a gitignore-like syntax.

On Thu, 16 Feb 2017, 12:44 Profpatsch, <mail at profpatsch.de> wrote:

> On 17-02-16 01:28pm, Freddy Rietdijk wrote:
> > > src = [ ./subproject-A/schema.sql ./subproject-A/lib ];
> >
> > Each of the files you mentioned here will be stored in a separate store
> > path. You could write a simple function that takes a list of derivations
> > and copies the contents of those derivations in a new output.
>
> Also maybe take a look at the `filterSource` builtin.
> There’s also some wrappers for common setups in lib/sources.nix
>
> --
> Proudly written in Mutt with Vim on NixOS.
> Q: Why is this email five sentences or less?
> A: http://five.sentenc.es
> May take up to five days to read your message. If it’s urgent, call me.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170216/0fd2c457/attachment-0001.html>


More information about the nix-dev mailing list