nix-community / lorri

Your project’s nix-env [maintainer=@Profpatsch,@nyarly]
Apache License 2.0
638 stars 24 forks source link

Notify build system on rebuild #53

Open Profpatsch opened 3 years ago

Profpatsch commented 3 years ago

When you use e.g. a Makefile for building your project’s dependencies, and you change your shell.nix, you’d want your build system to pick up the change.

There is no good synchronous solution here I think, since you can either

I feel like the last point is pretty easy to implement, you could tell lorri to touch e.g. .build/latest-lorri-eval and then depend on it in your makefile. It is racy of course, but better than if the build system never notices that something changed.

Profpatsch commented 3 years ago

Maybe there could even be a way to block the build system until the rebuild is finished? That would trade speed for correctness, but if you e.g. changed one of your code generation tools you really want to wait on it to be available.