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

Profpatsch mail at profpatsch.de
Thu Feb 16 13:44:24 CET 2017


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.


More information about the nix-dev mailing list