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, <m...@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@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev