Something I'm experimenting with here is to actually have these intermediate artefacts be explicitly captured. I would use multiple outputs to have both the normal complete binaries, and another output for .o files and the like. Then you can feed this back in to future builds.
Does that help? Might give you some food for thought... ocharles On Thu, 21 Apr 2016, 4:42 p.m. stewart mackenzie, <[email protected]> wrote: > Hi, > > I've got a bunch of artifacts being built in the > /tmp/nix-build-component_name.drv-0 > > now I want to point the build manager, in this case cargo using the > CARGO_TARGET_DIR env var to put the artifacts into a directory I make > directly in the /tmp/target_${name} > > This way any further compilations will reuse the artifacts and they > won't need to be rebuilt. > > obviously nix doesn't allow me to do this. > > Is there a dirty hack to allow creating and writing artifacts directly > to /tmp/target_${name}? > > Why? We're using nix as a replacement for make, one major drawback is: > every time we change a line of code the entire component + trans deps > needs to be rebuilt. This takes a long time when transitive deps go > deep. > > /sjm > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
